Hide " Access is denied." error in temp delete batch file

Viewed 23

I am trying to make a temp delete bat file I used rmdir %localappdata%\Temp /s /q I don't want to make a force delete and it gives alot of errors about access denied like C:\Users\lolo3\AppData\Local\Temp\~DF4C40694862D50384.TMP - The process cannot access the file because it is being used by another process. my problem is not the error my problem that I want to hide the errors like this is there a way or i need to force delete it

0 Answers
Related