Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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

martin

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
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.
martin

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

Your command is ok. It will work.
Msledge

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.