Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 986 Bytes

File metadata and controls

19 lines (12 loc) · 986 Bytes

FAIR WARNING!

Any path you enter into the console of this program, that file/path will be deleted. Be careful not to enter your main drive or other important paths like system32 into the console. I added two checks for paths, but there is no way in hell I am spending the time to hard code every possible path to avoid deleting.

So the responsibility is on you if your files get deleted by using this program.

Simply modify the program to avoid paths you don't want deleted or don't use this program if you don't want to take that risk.

Disclaimer

May not be able to delete some files.

CloseProcessAndDeleteFile

Delete any file no matter the cost to your PC's health, by forcing the programs using the file to be closed and the file deleted after as many attempts to delete as it takes.

All credits to Eric J. on stack overflow for their code I used in this project:

https://stackoverflow.com/questions/317071/how-do-i-find-out-which-process-is-locking-a-file-using-net