I have a Dos batch file which executes sftp using the -b flag. The ftp commands are in a separate text file. This dos batch file is run from the Task Scheduler on Windows 2003.I have set the user id to be my network id which has admin rights on the server.
When this jobs runs from the task scheduler, I am getting an ff return code.
however, if I run the batch file manually, it executes okay.
I am running version 1.3.2
Any suggestions?
Terry
What command syntax do you use when you launch sftp from the task scheduler ?
"c:\Program Files\copssh\bin\sftp.exe" -b d:\ftp_script.ftp useid@server
What is the working directory ? sftp needs to find ssh by using search path available during running batch files. If ssh is not available via default path, setting C:\Program Files\copssh\bin as working directory may help.
Try also to increase output verbosity (-v option) to see if some error messages are shown up.
I am trying to do the same from windows to unix server. Can u send me the bat file that u used