Topic "calling Winscp batchfile in sql server 2008 jobs parallely not working"

Author Message
[View user's profile]

Joined: 2017-03-16
Posts: 1
Location: Bangalore
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:// -privatekey=c:\privatekey.ppk>>script.tmp
echo put -resumesuppport=off %1 /outputfolder/>> script.tmp

rem Execuit Script /ini=null /script = script.tmp
rem delete temporary script

del script.tmp
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
1) We do not know what's in the script.tmp before your code snippet starts
2) It should be /script=script.tmp, not /script = script.tmp
3) It should be resumesupport, not resumesuppport
4) Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License