Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove-ItemSafely halts and asks if you want to permanently delete a file if you're holding shift #22

Open
Macil opened this issue Nov 11, 2022 · 0 comments

Comments

@Macil
Copy link

Macil commented Nov 11, 2022

I ran a powershell command in a terminal that looped over many files, processing each to create a new file and then deleting the original file with Remove-ItemSafely. I minimized the terminal and did other things while the command ran. I noticed multiple times that if I happened to be holding shift while the Remove-ItemSafely call happened, the command would halt there and Windows would pop open a modal asking if I wanted to instead permanently delete the file. This would either interrupt my typing, or sometimes the modal would appear in the background and I wouldn't notice it until later, leaving my script halted until I addressed the modal.

@Macil Macil changed the title Remove-ItemSafely asks if you want to permanently delete a file if you hold shift Remove-ItemSafely halts and asks if you want to permanently delete a file if you're holding shift Nov 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants