Topic "delete files from source directory after download"

Author Message
noade-haan
[View user's profile]

Joined: 2017-07-25
Posts: 2
hi

is there a way to delete files from the original directory after download?
I need to make sure those files will not be downloaded again to my local directory.

thanks,
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
Use "Files > Download and Delete" command.

Or are you using scripting or any other kind of automation?
noade-haan
[View user's profile]

Joined: 2017-07-25
Posts: 2
martin wrote:
Use "Files > Download and Delete" command.

Or are you using scripting or any other kind of automation?


yes, i'm using a batch file, attached.
pay.txt (397 Bytes) [Download]

Description: (none)

martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26572
Location: Prague, Czechia
So just add -delete switch to the get command.

https://winscp.net/eng/docs/scriptcommand_get
_________________
Martin Prikryl
Guest




it worked,
thanks a lot!
Advertisements

You can post new topics in this forum






Search

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