Re: Can't create logfile
call c:\winscp\winscp.com /console /script="\\server\folder\script.txt /log="\\server\folder\log.txt"
You are missing quote after script.txt.
Let us know if it helps.
call c:\winscp\winscp.com /console /script="\\server\folder\script.txt /log="\\server\folder\log.txt"
1. batch opens another and writes 1&2 logs to log.txt
bat1.bat>>log.txt 2>&1
2. second bat opens the script with
WinSCP.com /script=scpscript.txt /log=log.txt
second bat does other commands too after exiting the script.
thats the reason why i use >> instead of >
logs of more passes in 1 logfile