moving files after transfer/detecting locked files

Advertisement

guest
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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum