calling multiple winscp transfers from within a batch file

Advertisement

mediolocolopez
Joined:
Posts:
1
Location:
New Jersey

calling multiple winscp transfers from within a batch file

Hi new to the group so pardon if this has already been discussed however here is my dilema.
we have a batch file that runs daily that takes care of multiple data extractions and supplies it to multiple locations previously they were being done via ftp but now needs to be done using sftp. I have generated three separate batch files that individually work great!! however when calling them from the "master batch file " they seem to exit the entire batch file prematurely. below is a sample of how we are doing this.
in file called loadalldata.bat
Call "C:\Scripts\Batch Files\itPhoto_upload.bat"
Call "C:\Scripts\Batch Files\hrphotos_upload.bat"
in each file the below syntax exists <removed actual information and replaced with generics>
::FTP
"D:\Program Files (x86)\WinSCP\winscp.exe" /log=C:\logs\%date:~10,4%%date:~4,2%%date:~7,2%_log.txt /console /command "option batch off" "option confirm off" "open <uname>:<password>@<destinationip> -rawsettings SendBuf=0" "put f:\localdirectory\*.JPG /remotedirectory/" "exit"

if %errorlevel% NEQ 0 goto RetryingFTP
if %errorlevel% EQU 0 exit

hope i gave enough information to get some help thanks in advance community.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum