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

martin

Re: moving files after transfer/detecting locked files

guest wrote:

However, I want to rename the files in my local dir after the transfer to the Linux machine has succeeded

You can do this with the get command like:
get * c:\test_transfer\*.bak


and possibly move the renamed files to another local
dir.

You cannot do this.

Besides, is there a way for WinSCP3 to not transfer files in the local dir as long as they are locked (they can be locked because they are still, for example, being filled with data).

No.
guest

moving files after transfer/detecting locked files

Hi,

I have the following script:

option batch on
option confirm off
option transfer binary
get * c:\test_transfer
open drelst@172.22.0.134
cd /home/drelst/transfer
put c:\test_transfer\*
close
exit

This works OK for transferring files from my own Windows PC to a Linux Red Hat machine. However, I want to rename the files in my local dir after the transfer to the Linux machine has succeeded and possibly move the renamed files to another local
dir. Is there a way to do that in this script or am I only limited to using commands that only work on the remote machine (being the Linux machine). Besides, is there a way for WinSCP3 to not transfer files in the local dir as long as they are locked (they can be locked because they are still, for example, being filled with data).

Thanks in advance, Diederick