Post a reply

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

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.

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.

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

Re: File moving in scripting

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 :-)
Dan

moving files

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
Petr

File moving in scripting

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