Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Guys,
There is a file in my PC and I can't delete it using WindowsNT Explorer. It says the access is denied. I tried to change it's attributes using WNT Explorer and even though I can't delete it.
I tried the command attrib index.bat -r-s-h-a and I get the message this is an invalid command.
Any thoughts?
thanks,Fabio
OS: WINDOWS NT SERVICE PACK 4

Are you in the correct directory when you type in the command? Is this file in the root 'C:\' or in a subdirectory? In which case you type 'cd program files' (or wherever it is) and enter, then use the command again. Your command IS written correctly, and it should work.

No, actually, it's not. The attrib command requires spaces between each option. If you run it on it's own:
attrib filename.ext
It will show you the attributes that are set.
Then, you can run
attrib -r -s filename.ext
To clear the attributes.
However, an access denied statement leads more towards security than anything else. You can delete hidden, system and read-only files from within Explorer if you can see them. Right-click the files, select properties, then security and hit the permissions tab. There, you can add yourself with full control. Then, maybe you can delete it.
HTH,
Chase

Corrected; I typed the command in and it worked, I subconsciously used spaces because I learned the command that way, otherwise the syntax is correct. Fabio said he already tried changing attributes from Explorer, so this leads to thinking that it should be done from the command line. NT domain permission would give him a message saying he does not have permissions.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |