thanks
Thanks a lot.. that makes life a lot easier.
Ian
Ian
a) get file 1, then delete it on success, get file 2, delete it on success, etc
get -delete *.xml d:\temp\
####main.bat
cd "D:\Scripts"
subbat1.bat #make the list of files
subbat2.bat #for loop to build the get script
subbat3.bat #run the get script
####subbat1.bat
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="D:\Scripts\WinSCP.log" /ini=nul /script="D:\Scripts\script1.txt"
##script1.txt
open ftp://user:password@203.57.8.137/ -rawsettings ProxyHost="10.83.75.3" ProxyPort=2121 ProxyUsername="user" FtpProxyLogonType=8 ProxyPassword="password"
cd /outgoing
lcd "D:\Scripts"
ls /outgoing/*.xml >"D:\Scripts\filelist.txt"
exit
####subbat2.bat
for /f command needed to build the script3.txt file
####subbat3.bat
"C:\Program Files (x86)\WinSCP\WinSCP.exe" /log="D:\Scripts\WinSCP.log" /ini=nul /script="D:\Scripts\script3.txt"
##script3.txt
open ftp://user:password@203.57.8.137/ -rawsettings ProxyHost="10.83.75.3" ProxyPort=2121 ProxyUsername="user" FtpProxyLogonType=8 ProxyPassword="password"
cd /outgoing
lcd "D:\xml_INBOUND"
get -delete file1 D:\xml_INBOUND\
get -delete file2 D:\xml_INBOUND\
get -delete file... D:\xml_INBOUND\
exit