Thanks for the quick response.
That doesn't work also.
Maybe I've got this screwed up.
I've been running the command line from the Run command not a terminal
window. Does that make a difference.
Thanks
Kevin
"kimiraikkonen" <ki*************@gmail.comwrote in message
news:81**********************************@k37g2000 hsf.googlegroups.com...
On Aug 29, 11:59 pm, "Kevin Vogler" <kvog...@phoenixgrouppos.com>
wrote:
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
Try this:
Dim p As New Process
Dim info As New ProcessStartInfo _
("C:\Program Files\WinSCP3\WinSCP3.exe", _
"-script=myscript.txt")
p.Start(info)
Hope it works,
Onur Güzel