JimBobDelicate wrote:
Can you provide the code please and I can help troubleshoot this. Are you trying to pass console commands to Winscp ? why not open in console mode as part of your script. What type of script?
hi, i just posted as guest since i didn't log in (by mistake) but that was my response.I am not able to delete it either.sorry for the confusion.
to make it more clear:
thanks for the response. Yes I am trying to pass console commands to winscp. the script is as follows:
option batch on
option confirm off
open ftp://user:password@ftp.example.com
cd /home/user
get example.pdf Y:\
exit
I saved this script into a text file called "testScript.txt" in my C:\myScripts. And my winSCP.exe is present in C:\Program Files\WinSCP.
while creating the task, i gave the following:
In the action tab:
Program/script:
(I browse to the winSCP executable file which is "C:\Program Files\WinSCP\WinSCP.exe"
Add arguments(optional): /command "/script =C:\myScripts\testScript.txt"
I clicked finish button and the task ran with code 0x1 and did not give me an error. Can you help me on this??