Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

jools

mv command

OK thanks - that explains it

However there is some permission problem with the -delete option

I'll have a play
martin

Re: Problem with MV from the command line

Command mv moves remote files to a different remote directory. Use "put -delete" instead.
Jools

Problem with MV from the command line

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