💻 Software
Batch delete: Access is denied
Fresh5 days ago
Mar 15, 202652846 viewsConfidence Score0%
0%
Problem
I'm having issues with the command in a batch file. When it gets to the delete step I get the message "Access is denied". My batch command looks something like this. I can browse to the directory and delete the files without any problem in Windows Explorer. I tried running as administrator, but sti…
Error Output
set destPath=\\Public01\Appl\CompOps\Jobs\ robocopy . "%destPath%" *.dtsx *.dev *.prod *.ppro /IS pushd "%destPath%" del *.dtsConfig ren *.dev . po…
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Batch delete: Access is denied
Low Risk
To force a command to delete read-only files, add the flag. Apparently, a read-only file cannot normally be deleted by a batch file, although it can still be deleted through Windows Explorer. To check if your file is read-only, you can right click o…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix