VB Script Error - The system cannot find file

Dell / Precision m90
May 6, 2011 at 16:12:11
Specs: Microsoft Windows XP Professional, 1.83 GHz / 2046 MB
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?


See More: VB Script Error - The system cannot find file

Report •

#1
May 6, 2011 at 16:23:42
Presumably because you don't have an executable file called "DIR" in either the current directory, or in the path.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question