Topic "Moving files from Linux folder to Windows folder"

Author Message
Sasidharan9513
[View user's profile]

Joined: 2012-11-08
Posts: 11
Hi There,

I want to move the files for a folder in Linux to windows.

Below is my script :

open sftp://username:password@xxx.com
cd adi_cps
mv *.pdf C:\Winscp_testing\

When I execute this script I am getting the below error message:

Error moving file 'test4.pdf' to 'E:Winscp_testing'
General failure (server should provide error description). Error code: 4 Error message from server: Failure Request code: 18

only the MV command is not working, GET command is working fine.
get *.pdf C:\Winscp_testing\

Could any one let me know what is wrong with the command?

Thanks in advance,
S.Sasidharan
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
Command mv is for moving remote files to another remote directory
http://winscp.net/eng/docs/scriptcommand_mv

To download file and delete the source remote file afterwards, use get -delete
http://winscp.net/eng/docs/scriptcommand_get
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License