Hi Robin,
Chip's solution will work as always.
I'd point out the reason your shell failed is that redirection requires
invoking the command processor.
Like this...
Shell(Environ$("comspec") & " /c dir C:\ /S C:\DirList1.$$$",1)
Spaces in the path or filename have to be wrapped in double quotes.
Shell Environ("comspec") & " /k ping """ & strIP & """ """ & strFile &
"""", vbNormalFocus
--
John
johnf202 at hotmail dot com
"Robin Clay" wrote in message
...
Greetings !
Regarding -
Shell "dir C:\ /S C:\DirList1.$$$",1
..which works just FINE in a DOS window, but not in VB
[RunTime error 53: File not found]
Can SKS please suggest -
(a) why it doesn't work
(b) what it should be, in order to work; and/or
(c) a better way of achieving the same thing?
RClay AT haswell DOT com