batch file code delete stubborn file ?
Posted: 09 Apr 2022 04:06
hi
batch file code delete stubborn file ?
batch file code delete stubborn file ?
A Forum all about DOS Batch
https://www.dostips.com/forum/
note: lots of usefully settings in gpedit.exe however you can very easily break your OS install this also applies to User Account Permission's and Ownership/InherenceEdit group policy to allow the user about to delete files admirative permissions.
- open gpedit.exe
- goto Local Computer Policy / Computer Configuration / Windows Settings / Security Settings / User Rights Assignment / Take ownership of files or other objects
OR- Open Security and Maintenance in Control Panel/System and Security.
than you can- "Security" Tab in the left click file properties menu
- Set user permissions and ownership to :
Allow Administrators
Allow Users
Allow Everyone
Remove all the other user permission's
Disable File Inheritance
this will insure that whatever account your using can access it the file or folder.
C)- RD /F
- Del /F
- Shift Delete in the UI
- boot any windows media in boot mode,
- get to a cmd window and
- manually delete the file with del or rd
- type notepad into the cmd window
goto "open file"
Select "all file types"
search for the file you want to delete
note: this will also work with an offline Linux live boot os/ or as alongside Linux install