PowerShellModules icon indicating copy to clipboard operation
PowerShellModules copied to clipboard

Remove-ItemSafely on some computers asks confirmation

Open CasperNLD opened this issue 2 years ago • 4 comments

Hi,

I have a question regarding 'recycle' 1.5.0. In this version I noticed that my script does not give me a 'are you sure to send to recycle bin' dialog, but my colleague does. I do not use the '-conform' option, but still my colleague gets a dialog.

Why is this happening in 1.5.0?

CasperNLD avatar Mar 06 '23 12:03 CasperNLD

It's doing the same thing as pressing del in File Explorer, so it depends on your settings as to whether it shows a confirmation or not.

bdukes avatar Mar 06 '23 15:03 bdukes

Is it possible as a new feature to omit the users settings, perhaps creating of keeping your own setting during the session? Or is this beyond the scope of 'Recycle'?

CasperNLD avatar Mar 06 '23 21:03 CasperNLD

I am open to an alternative implementation of the Recycle module which allows more customization.

bdukes avatar Mar 06 '23 21:03 bdukes

My script processes directories with a fairly amount of files (range 100 to 600), so that would somewhat put a damper on my effort to automate some work. Perhaps a way to set/reset this user setting with powershell?

Unfortunately my knowledge is not sufficient (yet) to suggest an alternative implementation. I have to get back to you on that.

CasperNLD avatar Mar 07 '23 05:03 CasperNLD