Put to specify directory
Hi.
Why it works:
But this is not work?
OR
What am I doing wrong?
EDIT:
OK I find the answer, correct syntax is:
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"
c:\WinSCP-Portable\winscp.com /ini=nul /command "open sftp://user:pass@example.com/ -hostkey=""xxx""" "put ""C:\pliki\test.txt /""" "exit"
c:\WinSCP-Portable\winscp.com /ini=nul /command "open sftp://user:pass@example.com/ -hostkey=""xxx""" "put ""C:\pliki\test.txt /Directory/""" "exit"
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"