Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.comp.os.windows-xp    |    Actually wasn't too bad for a M$-OS    |    17,273 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 16,831 of 17,273    |
|    R.Wieser to All    |
|    piping / redirecting into a vbs script ?    |
|    22 Apr 24 16:42:19    |
      XPost: alt.windows7.general       From: address@is.invalid              Hello all,              Using XPsp3.              A few days ago I tried to redirect some commandline output into a vbscript,       which than should be able to read it using "wscript.stdin.readline".              Examples:       echo hello | myvbscript       myvbscript < data.txt              Alas, all I got was an "invalid handle" error. :-(                     The thing is, it works well enough when I explicitily specify wscript like       this              echo hello | wscript.exe myvbscript.vbs       wscript.exe myvbscript.vbs < data.txt              IOW, it likely has something to do with how the OS connects the .VBS       extension to the executable needing to run it, and than launches it.              Question:              Does anyone here know what to change in the registry to enable wscript to       recieve the piped / redirected output ?              Regards,       Rudy Wieser                     ps:       I know that I can wrap the vbscript in a few lines of batch script and work       around the problem that way, but thats (work-arounds) not what I'm looking       for.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca