Is it possible to execute local mv?

Advertisement

dmalesd
Joined:
Posts:
9

Is it possible to execute local mv?

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

Reply with quote E-mail

Advertisement

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

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
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.

Reply with quote

Advertisement

HermannSwiss
Guest

so, after some Testing, Coffee and Cigs, I made it :D

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

Reply with quote

Advertisement

You can post new topics in this forum