AllenAdministrator
(KiX Supporter)
2003-05-12 06:07 AM
Exec() or Pipe()

Lonkero's post about Dynu.com's objects led me to a very nice object - DynuExec which works very much like the Pipe() UDFs. I think this type of function would be a nice addition to a future version.

Here's a sample of the DynuExec Object:

$exec=Createobject("Dynu.Exec")
$ipconfig=$exec.execute("ipconfig")
$ipinfo=split($ipconfig,chr(10))
for each $line in $ipinfo
$data=split($line,":")
if left(ltrim($data[0]),10)="IP Address"
? $data[1]
endif
next


LonkeroAdministrator
(KiX Master Guru)
2003-05-12 06:27 AM
Re: Exec() or Pipe()

yep...
been asked for about zillion times [Big Grin]

that's why there are these:
Pipe() - by shawn
Pipe2() - by AJH
WSHPipe() - by chris S.

and even KiXforms is going to provide something similar.
although, these are not the same as kix having them inbuild, these are ok (not good [Wink] ) substitutes.