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

Author Message
Mohiuddin

Guest


Hi,
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 https://winscp.net/eng/docs/scriptcommand_mv 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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Use get -delete file1 file2 D:\abc\xyz\
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