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

punisher999

Put to specify directory

Hi.
Why it works:
c:\WinSCP-Portable\winscp.com /ini=nul /command "open sftp://user:pass@example.com/ -hostkey=""xxx""" "put ""C:\pliki\test.txt"""  "exit"

But this is not work?
c:\WinSCP-Portable\winscp.com /ini=nul /command "open sftp://user:pass@example.com/ -hostkey=""xxx""" "put ""C:\pliki\test.txt /"""  "exit"

OR
c:\WinSCP-Portable\winscp.com /ini=nul /command "open sftp://user:pass@example.com/ -hostkey=""xxx""" "put ""C:\pliki\test.txt /Directory/"""  "exit"

What am I doing wrong?
EDIT:
OK I find the answer, correct syntax is:
c:\WinSCP-Portable\winscp.com /ini=nul /command "open sftp://user:pass@example.com/ -hostkey=""xxx""" "put ""C:\pliki\test.txt"" /Directory/"  "exit"