Before you open cmd, right click on the shortcut and click "Run as administrator"
Access denied in command prompt?
Hi, I was wondering why command prompt keeps saying access denied? I'm trying to change a file on a disk from read only to not read only but command prompt keeps saying "access denied". I'm using Cmd (I'm on windows 7) and I have the correct file path ("D:\GameData\Shared\NonPackaged\Ini\Commands.ini") I only have two users and I am the admin. Is there any way to gain access to the files?
Windows for home | Previous Windows versions | Files, folders, and storage
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
3 answers
Sort by: Most helpful
-
Anonymous
2014-03-23T18:23:27+00:00 -
Anonymous
2014-03-24T18:26:49+00:00 Do you think it's because the file is on a disc?
Just to understand, the D drive is your CD-ROM?
This is what you mean by disk?
If yes, then you can't.
CDs are read only, you can't change anything in the CD.
But, you can copy all the files from the CD to your hard disk, then make all the changes, then burn them back to a new CD.
-
Anonymous
2014-03-23T21:03:21+00:00 Before you open cmd, right click on the shortcut and click "Run as administrator"
I just tried that but it still says 'access denied'. Do you think it's because the file is on a disc? If so is there any way to convert the disc to allow access?