Topic "Problems witch command call and mv"

Author Message
Swiss

Guest


Hi I wrote a script, but it doesn't work. After testing i would like to present two little problems.
I can't rename a file and alsow not delete all files. If you don't know what i want to do with my file: It's only a test file for my understanding.
Thank's a lot.


option batch on
option confirm off
option transfer binary

open ftp://......

cd /Test

lcd C:\TEMP\Test1


mv test.txt C:\TEMP\Test1\top.txt

call del C:\TEMP\Test1\* /q

close
exit
Swiss

Guest


I can make a rename, but I must do it on the remote directory.
Like this:

put -delete test.txt
mv test.txt top.txt
get -delete top.txt


But call doesnt't work, please give me an answer or better an explain as soon as possible.

Thank's a lot.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Command call also runs on the remote side. So you cannot delete a local file with it.
_________________
Martin Prikryl
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