File moving in scripting

Advertisement

Petr
Guest

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

Reply with quote

Advertisement

Dan
Guest

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

Reply with quote

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

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

Reply with quote

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

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

Reply with quote

Advertisement

You can post new topics in this forum