If running the following line from a batch file:
dir | myScript.vbs
how can I process the piped input from the DIR command?
I know we can do:
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("%comspec% /c dir")
strOut = oExec.StdOut.ReadAll
WScript.Echo strOut
Just curious if VBScript can get process the piped input data.
Thanks,
neualex
dir | myScript.vbs
how can I process the piped input from the DIR command?
I know we can do:
Dim WshShell, oExec
Set WshShell = CreateObject("WScript.Shell")
Set oExec = WshShell.Exec("%comspec% /c dir")
strOut = oExec.StdOut.ReadAll
WScript.Echo strOut
Just curious if VBScript can get process the piped input data.
Thanks,
neualex