I'm trying to run a vb script that has code it it like this: sCommand = "DIR \\DFS-LT-SKENT\C$\TEST"
Set WShell = CreateObject("WScript.Shell")
Return = WShell.Run(sCommand, 1, true)Why do I get an error: The system cannot find the file specified?
Presumably because you don't have an executable file called "DIR" in either the current directory, or in the path.
Yes (14) | ![]() | |
No (14) | ![]() | |
I don't know (15) | ![]() |