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

HermannSwiss

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
HermannSwiss

thx alot, going to test it

greets
Hermann
martin

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

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

Re: Is it possible to execute local mv?

It is not supported.
dmalesd

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