Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

anikeh

Found the solution.
I am leaving it here in case someone else runs into the same issue:
There is a space in this expression between log and the = symbol. There should not be any.
/log ="D:\Projects\ert\fbi\WinSCPLog\TransferLog.log"
anikeh

script with logging

Hi,

I am using this script to move files on my FTP server, but it stopped working when I added this part.
/log ="D:\Projects\ert\fbi\WinSCPLog\TransferLog.log"


Any idea why?

The full code is below:

 /console  /log ="D:\Projects\ert\fbi\WinSCPLog\TransferLog.log"   /command "open sftp://ssiskfbdev:@bqmsft.westus.cloudapp.azure.com -hostkey=""ecdsa-s*****256 256 52:07:59:b2:f6:0b******:04""  -privatekey=""D:\Projects\ert\fbi\FTP_Keys\dev.ppk""" "get incoming/*.txt D:\Projects\ert\fbi\Incoming\" "mv incoming/*.txt /incoming/archive/" "exit"