K
Kevin Vogler
I'm trying to programatically run an app.
The command line syntax is:
"C:\Program Files\WinSCP3\WinSCP3.exe" -script=myscript.txt
and it works as intended.
In code, I have this
Dim myProc As Process = New Process()
myProc.StartInfo.FileName = "C:\Program Files\WinSCP3\WinSCP3.exe"
I've also tried """C:\Program Files\WinSCP3\WinSCP3.exe"""
myProc.StartInfo.Arguments = "-script=myscript.txt"
myProc.Start()
This doesn't work and doesn't produce an error.
What am I doing wrong?
thanks
Kevin Vogler
The command line syntax is:
"C:\Program Files\WinSCP3\WinSCP3.exe" -script=myscript.txt
and it works as intended.
In code, I have this
Dim myProc As Process = New Process()
myProc.StartInfo.FileName = "C:\Program Files\WinSCP3\WinSCP3.exe"
I've also tried """C:\Program Files\WinSCP3\WinSCP3.exe"""
myProc.StartInfo.Arguments = "-script=myscript.txt"
myProc.Start()
This doesn't work and doesn't produce an error.
What am I doing wrong?
thanks
Kevin Vogler