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