The following line appears within a dos batch file run on a windows 2000 server. We are using WinSCP 3.7.4 build 271
------------------------------------------------------
"c:\program files\winscp3\winscp3.exe" /console /script=D:\WEBOUT\NSS_Scripts\winscp3_to_NSS.txt /log=D:\LogFiles\nss\to_NSS.txt
------------------------------------------------------
(script file) (winscp3_to_NSS.txt)
# Automatically answer all prompts negatively not to stall
# the script on errors
option batch on
option log=D:\LogFiles\nss\to_NSS.txt
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Connect using a password
# open user:
[email protected]
# Connect
# Change remote directory
# cd /home/user
lcd d:/temp
# Force binary mode transfer
option transfer binary
# Download file to the local directory d:\
# get examplefile.txt d:\
# Disconnect
#close
# Connect as a different user
open
[email protected]
# Change the remote directory
cd /app/iface/NSFSCNV/13400/AP/inbound
# Upload the file to current working directory
put SIAPIo57
put SIAPIo58
put SIAP01
put SIAP02
put NSAP01
put NSAP02
#put d:\examplefile.txt
dir
# Disconnect
close
# Exit WinSCP
exit
------------------------------------------------------------------