Will /log work from command line if I am connecting to sFTP

Advertisement

Msledge
Joined:
Posts:
6

Will /log work from command line if I am connecting to sFTP

I found this today while reading:
"For security reasons, when protocol (such as sftp://) is provided as part of session URL (possible execution from web browser/Windows Explorer), all command-like parameters that cause any automatic action are ignored, including /defaults, /log, /script and /command."

I do not know exactly what 'session URL' is. I created my sFTP connection by opening WinSCP and using the WinSCP Login window. I can assign a log through the advanced properties, but I would like to overwrite session during the run of a .bat file.

My command is:
winscp.com /log "C:\Users\naa\Workspace1\dev\work\log.xml" /command "option batch ""on""" "option confirm ""off""" "open ""asp1_test""" "lcd ""C:\Users\naa\Workspace1\dev\work\""" "get -delete ""%1.001""" "exit"

Any help is appreciated.

Reply with quote

Advertisement

Msledge

Re: Will /log work from command line if I am connecting to sFTP

That's strange, when I ran thet command I could not find the log file? I'll try again and let you know.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,517
Location:
Prague, Czechia

Re: Will /log work from command line if I am connecting to sFTP

Msledge wrote:

That's strange, when I ran thet command I could not find the log file? I'll try again and let you know.
Ok, I wasn't checking the log part, only the /command part.
It should be:
/log=C:\Users\naa\Workspace1\dev\work\log.xml

Reply with quote

Advertisement

You can post new topics in this forum