Topic "moving remote files"

Author Message
Abu-Dina

Guest


I have the following script which basically downloads a file then attempts to move it to a different remote folder:

option batch on
option confirm off
open ftp://blahblahblah/ftp/download
option transfer binary
get winscptest.txt D:\dir1\dir2\
mv winscptest.txt Archive/
close
exit

However, the mv command is not working and I'm getting an error (error moving file etc..)

the remote folder structure is /ftp/download
and I want to move the file to /ftp/Archive


Any ideas?
Abu-Dina

Guest


Problem solved!

changed MV command to the below and it's fixed!

mv winscptest.txt /ftp/Archive/

Thanks.
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