Posted: 2017-03-16 15:36
Calling batch file in one sql server job and it works fine but
calling two sql server jobs with the batch file and passing different files to upload its not working
which every job runs first uploads the file correctly the other jobs just runs and completes.
Below is the job script.
rem generate temporary script to upload %1
echo open SFTP://email@example.com:1234/ -privatekey=c:\privatekey.ppk>>script.tmp
echo put -resumesuppport=off %1 /outputfolder/>> script.tmp
rem Execuit Script
winscp.com /ini=null /script = script.tmp
rem delete temporary script
Location: Prague, Czechia
1) We do not know what's in the
2) It should be
3) It should be
4) Please attach a full session log file showing the problem (using the latest version of WinSCP).
To generate the session log file, use
You can post new topics in this forum
And it's free!