Topic "Is it possible to execute local mv?"

Author Message
dmalesd
[View user's profile]

Joined: 2006-09-28
Posts: 9
I have written a script and would like to perform a mv of files on the local PC. After looking at the commands list there seems to be only lpwd and lcd available.
Is there a way to execute other local commands for example mv?

Thanks
David
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
It is not supported.
_________________
Martin Prikryl
HermannSwiss

Guest


hm... so i cant do the following?!

1. Upload file from local to remote (script exists and works fine)

2. Move the uploaded file, from the original local directory to another local directory, so that the original directory is now empty (for saving purposes)

greets
Hermann
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
HermannSwiss wrote:
hm... so i cant do the following?!

1. Upload file from local to remote (script exists and works fine)

2. Move the uploaded file, from the original local directory to another local directory, so that the original directory is now empty (for saving purposes)

I've made some example for you.
HermannSwiss

Guest


thx alot, going to test it

greets
Hermann
HermannSwiss

Guest


so, after some Testing, Coffee and Cigs, I made it Very Happy

the Batch File looks like the following:

start C:\Programme\WinSCP3\WinSCP3.com /privatekey=C:\packpri2.ppk /script=C:\EDIScript\uploadbreuninger.txt
if errorlevel 1 goto error

echo Upload succeeded, moving local files
move C:\breuningertestup\*.* C:\Archivtest\
exit

:error
echo Upload failed, keeping local files


again thx for the great help, keep on

greets
Hermann
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