P
Patrick Dugan
I am trying to launch a vbscript from within vb.net (vs2005)
The script itself requires a parameter of a filename to process.
I have tried:
Dim P As Process = Process.Start("C:\Temp\MyTest.vbs",
"MyFileToProcess.txt")
also
Dim P As Process = Process.Start("C:\winnt\system32\cscript.exe",
"C:\Temp\MyTest.vbs MyFileToProcess.txt")
also
Dim P As Process = Process.Start("C:\winnt\system32\wscript.exe",
"C:\Temp\MyTest.vbs MyFileToProcess.txt")
In all cases the process starts but the script never runs. The files are in
the correct location. Is there some better way in VS2005 to start a
vbscript and pass it a parameter?
The script itself requires a parameter of a filename to process.
I have tried:
Dim P As Process = Process.Start("C:\Temp\MyTest.vbs",
"MyFileToProcess.txt")
also
Dim P As Process = Process.Start("C:\winnt\system32\cscript.exe",
"C:\Temp\MyTest.vbs MyFileToProcess.txt")
also
Dim P As Process = Process.Start("C:\winnt\system32\wscript.exe",
"C:\Temp\MyTest.vbs MyFileToProcess.txt")
In all cases the process starts but the script never runs. The files are in
the correct location. Is there some better way in VS2005 to start a
vbscript and pass it a parameter?