Hi, I get this error when i call winscp from a scheduled task (the error details are from the event log):
"Faulting application winscp419.exe, version 188.8.131.526, faulting module kernel32.dll, version 5.2.3790.4480, fault address 0x0000bef7."
My scheduled task runs as the "NT AUTHORITY\SYSTEM" user. It runs a batch file with this contents:
winscp419.exe /log="logs\%date:~10,4%%date:~7,2%%date:~4,2%_winscp.log" /script=xxx.txt
Note the /log=... above - this log file does not get generated at all, so i don't know whats crashing.
My script 'xxx.txt' looks like this (censored a bit) :
option batch on
option confirm off
option transfer binary
open abc:def@xyz -hostkey="ssh-rsa 1024 12:34:...."
get -delete /remotefolder/* "D:\localfolder\"
Interestingly, when running this batch file from my normal account, i have no issues.