How to delete files after copying

Advertisement

bkand
Guest

How to delete files after copying

Hi,
I have the following code to copy files from the remotes server onto my local server. Can someone please help me or advice me as how to delete the files on the remote server once i copy them?
option batch on 
option confirm off 
open sftp://<username>:<password>@server -hostkey="ssh-dss xxxxxxxxxxxxxxxx" 
cd . 
option transfer binary 
get -preservetime *.txt F:\FTPShare\ftp\ 
 close 
exit    
Please need help.

Reply with quote

Advertisement

sgarciav
Guest

I noticed that in the example the GET statement uses a wildcard. Is this allowed with GET in general or is this a WinSCP specific feature? Thanks, Salvador

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

What is "GET in general"?
_________________
Martin Prikryl

Reply with quote

sgarcia
Guest

"GET in general" - What I am asking is whether the use of wildcards is a standard feature of the GET command or whether it is specific to WinSCP. Thanks, Salvador

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

The get command is a specific command of WinSCP. If you are using a different tool, that also has a get command, you should seek a help with their support. There is no global specification of "get" commands, as far as I know.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum