script with logging

Advertisement

anikeh
Joined:
Posts:
3

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"

Reply with quote

Advertisement

anikeh
Joined:
Posts:
3

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"

Reply with quote

Advertisement

You can post new topics in this forum