Hey list!
Looking for a little help... I created a batch file that calls 2 synchornization processes, then zips up the logs and stores them. When I run the batch file manually, it works great, but if I schedule the batch file to run through task scheduler, I get an error in the logs that says "Could not connect to <ip address>". I've included the text of the batch file and of one of the .ctl files below. Thanks! Note, real IP addresses and paths have been replaced by <ip address> and <path>.
Looking for a little help... I created a batch file that calls 2 synchornization processes, then zips up the logs and stores them. When I run the batch file manually, it works great, but if I schedule the batch file to run through task scheduler, I get an error in the logs that says "Could not connect to <ip address>". I've included the text of the batch file and of one of the .ctl files below. Thanks! Note, real IP addresses and paths have been replaced by <ip address> and <path>.
Synch.bat
----------------------------------------------------------
"C:\Program
Files\WSFTP Pro\ftpsync.exe" -f "C:\Scripts\SD-WEB1.ctl"
"C:\Program Files\WSFTP Pro\ftpsync.exe" -f "C:\Scripts\SD-WEB2.ctl"
SET TODAY=%DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4%
move /y c:\scripts\sd-web1.log c:\scripts\logs\sd-web1-%today%.log
move /y c:\scripts\sd-web2.log c:\scripts\logs\sd-web2-%today%.log
cd "c:\program files\winrar"
winrar a c:\scripts\logs\publishing c:\scripts\logs\*.log
del c:\scripts\logs\*.log
"C:\Program Files\WSFTP Pro\ftpsync.exe" -f "C:\Scripts\SD-WEB2.ctl"
SET TODAY=%DATE:~4,2%-%DATE:~7,2%-%DATE:~10,4%
move /y c:\scripts\sd-web1.log c:\scripts\logs\sd-web1-%today%.log
move /y c:\scripts\sd-web2.log c:\scripts\logs\sd-web2-%today%.log
cd "c:\program files\winrar"
winrar a c:\scripts\logs\publishing c:\scripts\logs\*.log
del c:\scripts\logs\*.log
----------------------------------------------------------
SD-WEB1.ctl
----------------------------------------------------------
ws_ftp 0760
sync 0100 0760
path1=<path>
profile2=iAgent SD-WEB2 (<ip
address>)
path2=/$$content$$
RecurseDepth=0
rulebase=0
O1=2
N1=2
EQ=0
N2=0
O2=0
shownoact=1
ftplog=1
testmode=0
caseinsensitive=0
exclude=131073,_baks
exclude=131073,_notes
exclude=131073,_mm*
exclude=131073,_vti*
exclude=131073,old
exclude=65537,*.lck
---------------------------------------------------------
