a few days ago I asked how to run a dos command in VB
I got this answer but it won't work

cmd = "cmd /c dir > " & app.path & "\dosresult.txt"


so I run

Shell "ping 192.0.0.1 /c dir > c:\test.txt"

or

Shell "NSLOOKUP /c dir > c:\test.txt"

and it doesn't do anything