Put to specify directory

Advertisement

punisher999
Joined:
Posts:
1
Location:
Poland

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"

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum