martin wrote:
comfortablynumb wrote:
I've tried running this by using a command line winscp.exe /script="c:\temp\test.txt" /parameter xmllog=c:\temp\log.txt
The log isn't helping me as there's not much in the log for info.
The syntax should be:
winscp.exe /script=c:\temp\test.txt /xmllog=c:\temp\log.txt
Also you probably want to use
/log
instead of
/xmllog
, if you want the log for debugging purposes.
put D:/Temp/Logs/*.*>8H /TEST/Logs-Folder
Should be:
put -filemask=>8H D:\Temp\Logs\*.* /TEST/Logs-Folder/
Anyway, whey don't use
synchronize
?
https://winscp.net/eng/docs/scriptcommand_synchronize
I didn't want to use the synchronize because I'm uploading to an ftp site I don't control. However I can use just a task that uploads the logs that have been modified or created for that "day", I don't need to be time specific.
I have to run this as a scheduled task in Windows and then email the result code of the scheduled task as well as the log on whether the upload worked, can anyone help?