Topic "Problem with MV from the command line"

Author Message


I have a .bat file containing the following
c:\"Program Files"\WinSCP\ user:pass@mydomain /command "put c:\jools.pdf /home/jools/pdfemail/invoices/"

Using PUT the command works as expected and the PDF file is copied ok - when changing the PUT to a MV WinSCP comes back with the error

error moving file 'c:\jools.pdf' to /home/jools/pdfemail/invoices/c:\jools.pdf'

No such file or drectory

If I use the linux format c:/jools.pdf I still get a no such file or directory error - i'm guessing from the windows side??

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26331
Location: Prague, Czechia
Command mv moves remote files to a different remote directory. Use "put -delete" instead.
Martin Prikryl


OK thanks - that explains it

However there is some permission problem with the -delete option

I'll have a play

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License