Topic "mv (move) command does not accept windows destination path"

Author Message


I am facing a problem with winscp commandline scripting:
I am trying to move files from unix to windows system like:

mv file1 file2 D:\abc\xyz\

but its mentioned here that the destination folder should be terminated with a slash. But unfortunately its accepting only forward slash(/) which is unix style file seperator, and not accepting windows style seperator, backward slash(\).

Please help me how to move files from unix system to windows system. Thanks in advance.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 27106
Location: Prague, Czechia
Use get -delete file1 file2 D:\abc\xyz\

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License