Discussion Locked

deleting a file ion MS-DOS

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

how do i delete a file when get message
access denied.

2 replies

by valin

TOPIC: To delete a file for which you don't have access from Windows GUI.

RESOLUTION
1) Restart your computer in MS-DOS mode an issue a "ERASE filename" command at the command prompt.

OR

2) Boot MS-DOS from a floppy disk and do "ERASE filename". You can use a "Windows Startup Disk" to boot from (if you had prepared one).

NOTE:
I hope you realize that this procedure might be dangerous if you choose to delete an essential part of your OS.

by sparent

If you're getting 'Access Denied' when trying to delete a file, you might want to try unsetting the read-only, hidden, and system attributes. From DOS, the syntax is

ATTRIB -r-s-h filespec

Once you've turned off the attributes, you should be able to delete the file.

This discussion is closed to new replies.