Re: run WinSCP from vbs
Hi Martin. Yes as a matter of fact I did try that. The problem is not with WinSCP, it's with how WSCRIPT will execute a batch file that in turns executes a program, which in turn takes its commands from a text file. The execution hierarchy is long in this case, and the Test file gets no priority, and there was no (easy) way to get the WinSCP script to open and execute the commands in the .txt file. However as I wrote above, I did find the solution, by directly running the WinSCP script from within the VBS file, and passing the commands through the /command switch. It works perfectly. Thanks for the help
Leo
Leo
So I am trying to run a command on WinSCP from VBS, but it does not run. Is there a way to accomplish this?
wshShell.Run("WinSCP3.exe secureSFTP /console /script=fsftp.txt"),1,True
Have you tried to specify full path? Would it help?