Error put command in specific folder

Advertisement

andrerca
Guest

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
29,816
Location:
Prague, Czechia

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/ui_generateurl#script

Reply with quote

Advertisement

You can post new topics in this forum