
limits on WshShell.Run()? Need good reference manual
Can someone point me to a reference manual that would have helped
with the following problem? I called WshShell.Run as follows:
TestLog = "log.txt"
GoldenLog = "C:\SQZ\dev\Tests\Controls\Combo\GoldenSimple.txt"
diffResult =
"C:\SQZ\dev\Tests\Controls\RegressLogs\logs\Combo\Simple\Simplediff.txt"
diffCmd = "%comspec% /c fc /L /N " & TestLog & " " & GoldenLog
diffCmd = DiffCmd & " > " & diffResult
res = Wsh.Run(diffCmd, 0, true)
This invocation failed, displaying the message:
"A device attached to the system is not functioning" (code 8007001F)
If I changed diffResult to be much shorter:
diffResult = "diff.txt"
Then the Run invocation worked fine. So there is a limit on the length of
string the Run method can handle or the number of directories in a path
for redirecting output that %comspec% can handle or some other limit.
Does anyone know of a good reference manual that would describe these
limits so I could avoid tracking them down through experimentation?