Re: Is there a way to open a site first on the command line, and then execute scripts?
Your related question: https://winscp.net/forum/viewtopic.php?t=30325
TRACE
, LOG
or ONERROR
in WinSCP scripting.
winscp.com
, not winscp.exe
.
winscp.exe "JohnDoe" /console /loglevel=2 /log=debuglog.log /script=JohnDoe.scr
JohnDoe.scr
**********************************
TRACE JohnDoe_trace.txt
LOG JohnDoe_log.txt
#CONNECT JohnDoe - commented out
ONERROR GOTO DISCONNECT
PUT "c:\JohnDoeFiles\JohnDoe.dat"
ONERROR GOTO DISCONNECT
@LABEL DISCONNECT
CLOSE
**********************************