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

Author Message
Msledge
[View user's profile]

Joined: 2011-10-29
Posts: 5
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.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Your command is ok. It will work.
_________________
Martin Prikryl
Msledge
[View user's profile]

Joined: 2011-10-29
Posts: 5
That's strange, when I ran thet command I could not find the log file? I'll try again and let you know.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
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
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License