Topic "moving files after transfer/detecting locked files"

Author Message
guest

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24530
Location: Prague, Czechia
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:
Code:
get * c:\test_transfer\*.bak


Quote:
and possibly move the renamed files to another local
dir.

You cannot do this.

Quote:
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.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License