Topic "File moving in scripting"

Author Message
Petr

Guest


Hi,

I'd like to MOVE files from remote to local or local to remote in scripts.
Just now I'm using copy and delete but I think a command like COPYDEL or MOVE
would be better way to do so.

Thanks
Advertisements
Dan

Guest


I'm interested in moving files as well, but in a "synchronizer" fashion. As I understand, right now you can use "mv" command to do this, one a time. I'd like a automatic and continuous process (like synchronizer) whereby WinSCP monitors the remote directory, moves any new files from the remote directory to local directory.

Any prospect of adding that?

I thought of writing a script to do it but I'm familiar with just Unix for now. E.g., in Windows, do you know how to do the equivalent of "sleep 10" in WinSCP script?

Thanks!
Dan
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Petr wrote:
I'd like to MOVE files from remote to local or local to remote in scripts.
Just now I'm using copy and delete but I think a command like COPYDEL or MOVE
would be better way to do so.

OK, maybe Smile
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Dan wrote:
I'm interested in moving files as well, but in a "synchronizer" fashion. As I understand, right now you can use "mv" command to do this, one a time.

"mv" command is for moving remote file to another REMOTE directory.

Quote:
I'd like a automatic and continuous process (like synchronizer) whereby WinSCP monitors the remote directory, moves any new files from the remote directory to local directory.

There's no way to monitor remote directory. All you can do it to perform periodical synchronisation.

Quote:
I thought of writing a script to do it but I'm familiar with just Unix for now. E.g., in Windows, do you know how to do the equivalent of "sleep 10" in WinSCP script?

There's naturally no such script command in WinSCP. I believe that neither Windows shell has one. Ugly solution would be to run the sleep on remote side, i.e. "call sleep 10".
_________________
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