Topic "delete local files to recycle bin when synchronizing"

Author Message
HawkTroy
[View user's profile]

Joined: 2014-11-05
Posts: 1
I'd like to synchronize my local directory with a remote one (mirror from remote to local).
However, I'd like to delete my local files to recycle bin instead of permanently.

When I'm using GUI, local files seem to be deleted to recycle bin by default (an apparent contradiction with documentation), and I couldn't find any option that controls this behavior.
When I'm doing the same synchronization using script, local files are all deleted permanently.

Is there any option that I can add to the command that can change this behavior?
If not, I'd like to request this feature.

I am using the latest version of WinSCP. My script is very short and simple:

sycn.bat:
Code:
"C:\Program Files (x86)\WinSCP\winscp.com" /log=log.txt /xmllog=log.xml /script=sync.txt


sync.txt:
Code:
open [site]
synchronize local -delete -mirror -criteria=either -transfer=binary  [local directory]  [remote directory]
exit
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
HawkTroy wrote:
When I'm using GUI, local files seem to be deleted to recycle bin by default (an apparent contradiction with documentation),

Where do you see the contradiction? The documentation says:

Quote:
Deleted local files are moved to recycle bin if preference option Delete local files to recycle bin is enabled only.

The option is enabled by default.

Quote:
... and I couldn't find any option that controls this behavior.

See above.

Quote:
Is there any option that I can add to the command that can change this behavior?

No, it's not supported.

Quote:
If not, I'd like to request this feature.

OK, will see if more people ask for this.
Bulldust

Guest


Hi...I am also trying to do the same as HawkTroy using Winscp 5.5.6 build 4746)
As much as the current default behavior in the GUI is to delete to the recycle bin, when I run a mirror script(exactly the same as Hawktroy's) the local files are deleted permanently instead of going to the recyclebin which results in dataloss.

I thought winscp in such a case uses the default delete command in windows?looks like the script is somehow using shift+del instead
Doesn't the script use the configured environment preferences? seems like a bug to me...

ps: Thanks for the support & great software!
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Bulldust wrote:
Hi...I am also trying to do the same as HawkTroy using Winscp 5.5.6 build 4746)
As much as the current default behavior in the GUI is to delete to the recycle bin, when I run a mirror script(exactly the same as Hawktroy's) the local files are deleted permanently instead of going to the recyclebin which results in dataloss.

I thought winscp in such a case uses the default delete command in windows?looks like the script is somehow using shift+del instead
Doesn't the script use the configured environment preferences? seems like a bug to me...

ps: Thanks for the support & great software!

This request has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1270
_________________
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