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

martin

Re: Error put command in specific folder

SFTP protocol always uses forward slashes, even when you are connected to a Windows machine.

Login with WinSCP GUI and check a remote file panel for the correct path syntax that your SFTP server uses.

You can even have the GUI generate a script template for you:
https://winscp.net/eng/docs/guide_automation#generating
andrerca

Error put command in specific folder

Hi,

I'm trying to copy a folder from one Windows Server to another, using this command:

open sftp://myuser:mypw@172.16.49.2/
put -nopermissions -nopreservetime "C:\scp\Testecopia" "D:\Testecopia"

In my understanding, "C:\scp\Testecopia" is the source in source server and "D:\Testecopia" the destination in destination server.

Error:
Error creating folder /C:/Users/myuser/D:Testecopia/'
Bad message <badly formatted packet or protocol incompatibility>;
Error code: 5
Error message from server: Bad message


I appreciate any help i can get.