Author Topic: windows 7 permission denied  (Read 11832 times)

Offline narendrav

  • Single posting newcomer
  • *
  • Posts: 3
windows 7 permission denied
« on: March 16, 2011, 07:23:58 pm »
I use codeblocks on windows 7.The first 2 or 3 programmes were compiled well.
they were just simple "hello world" programmes.But from then on it started showing
an error that "PERMISSION IS DENIED".It was the only error that it showed.
I dont know what to do.I am new to  C programming and I liked Code blocks because it has a white background.
Please help me

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: windows 7 permission denied
« Reply #1 on: March 16, 2011, 07:29:23 pm »
Save/Start the project in a folder you have rights to save/update it in.
NOTE: You should NOT save the project under Program Files folder.
Or directly under the C:\ drive.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline narendrav

  • Single posting newcomer
  • *
  • Posts: 3
Re: windows 7 permission denied
« Reply #2 on: March 16, 2011, 07:33:46 pm »
So If i install the software in D or any other drive,you say it will work.Actually,I purchased my laptop 5 days back and it has only C drive.
I dont know how to create another drive so that I can save the software in another drive
So I am very confused.
Thanks for your repl Mr.Tim and it would be of great help for me if you can put me out of this  problems.
By the way my laptop is
ACER TIMELINE 4820T

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: windows 7 permission denied
« Reply #3 on: March 16, 2011, 07:49:46 pm »
So If i install the software in D or any other drive,you say it will work.

NO, I DID NOT SAY THAT!

Edit: Someone who knows how to explain Windows Folders Permissions to an Windows 7 Newbie, please answer, I give up.

Edit2: Another Thread that says Anti-Virus can cause related problem; not the same as what I was thinking "Windows Folders Permissions".
http://forums.codeblocks.org/index.php/topic,11832.0.html

Tim S.
« Last Edit: March 16, 2011, 09:06:46 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline ptDev

  • Almost regular
  • **
  • Posts: 222
Re: windows 7 permission denied
« Reply #4 on: March 16, 2011, 08:16:06 pm »
I use codeblocks on windows 7.The first 2 or 3 programmes were compiled well.
they were just simple "hello world" programmes.But from then on it started showing
an error that "PERMISSION IS DENIED".It was the only error that it showed.
I dont know what to do.I am new to  C programming and I liked Code blocks because it has a white background.
Please help me

It sounds like you are new to many things besides C programming.
Create a folder for your programs under ""Documents", because there you will have permission to write at will.
From then on, select that folder as the location for your projects in Code::Blocks.

Neil Roy

  • Guest
Re: windows 7 permission denied
« Reply #5 on: March 29, 2011, 07:47:06 pm »
I installed CodeBlocks to C:\Develop\CodeBlocks on my computer, you definitely shouldn't install it into Program Files or other similar system folders or you can get that error. 

I have a C:\Develop folder (or you could put it in %userprofile%\CodeBlocks  and perhaps put your projects in the same %userprofile%\Projects, this way you know you can write there and they're easily accessible by simply clicking the folder on your desktop that has your name.

If you're uncertain where %userprofile% is, just open up a command prompt, it always starts in there by default (provided you're not starting the command prompt with administration rights).

Have you tried running the program as Administrator?  This may also help, although I like to avoid doing that if possible.