Topic "Problem with MV from the command line"

Author Message
Jools

Guest


I have a .bat file containing the following
c:\"Program Files"\WinSCP\winscp.com 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??

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

Guest


OK thanks - that explains it

However there is some permission problem with the -delete option

I'll have a play
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