
shell with dos tool output redirected to a file
Hello everyone :)
i can't get the output of a dos command using "shell"
the file that should be created by the dos command isnt created...
someone knows why ?
any ideas how this can be done ? this way or another ?
here is my code : (similar code works fine under QBasic but i translate it
for VB6...)
IP$ = "192.168.0.1"
TempFile = "c:\temp\Tempfile.tmp"
CMD = "ping -n 1 " & IP$ & " > " & TempFile
zou = Shell(CMD, vbHide)
any help greatly appreciated ! :o)
thanks
Tabatha,
www.kik-it.com