I have a program which i want to invoke from windows service.
xsftp.StartInfo = New ProcessStartInfo("c:\stage\psftp.exe", "testuser@X.X.X.X -b c:\stage\script.bat -pw XXX")
xsftp.Start()
The same code works fine if i write in a console application, but from windows service it wont run, i see the psftp is being started in the task manager but it wont do anything..
any ideas ?
Thanks!
Srin
How do you determine it doesn’t do anything? If you’re looking for GUI, it might be running under a different user, without access to your desktop.