access denied but why ??

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
i know this post more or less belongs in the programming section but i feel that it belongs here so here goes

when ever i try to write to a file in the c: or save anything to the c: i get this error message "access denied" this happens thru paint word
and the software i create too thru vb

and it is impossible to create any file through command prompt either using copy con
or when i try to compile my .java files to .class files
going through all this xp seems to be much better

please tell me how to get rid of this extra security (and useless too )
 

bsobel

Moderator Emeritus<br>Elite Member
Dec 9, 2001
13,346
0
0
If you can't even be bothered to indicate what OS your running its kindof hard to be bothered to help...
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
Sounds like you have Windows Vista which does not allow you to save to the root of c, windows or program files etc unless you launch the initiating program with administrator privileges.

The security is there for a reason.
 

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
Originally posted by: bsobel
If you can't even be bothered to indicate what OS your running its kindof hard to be bothered to help...

SRY MY BAD :p iam using the ultimate 32 bit or x86 bit version sp1

@snapster :
now i cannot run every single of the programs wid administritive privileges and besides how to get those privileges for programs say i have c.exe then how to get privileges for em
and i dont find any reason why there is this tight security i mean we used to make do with xp with no security at all and even inspite of all these securities i had a to face a Trojan attack

i mostly code for my friends pr i usually code some childish programs which almost always have to do some thing or the else with files ...........

i just need to know how to give these privileges to javac which is in my c drive to be able to out put files to my d,e,c drives ....
 

corkyg

Elite Member | Peripherals
Super Moderator
Mar 4, 2000
27,370
240
106
Do a Google for "Take Ownership" of such files in Vista. You can download and install a script which makes a Registry entry, and then you can right click such a file and select "Take Ownership" of that file. That will eliminate your "Access Denied" event.
 

mechBgon

Super Moderator<br>Elite Member
Oct 31, 1999
30,699
1
0
Create a new folder in C:\ and give your Users group and Administrators group Full Control access to that folder, if you really need a "dumping ground" for files right in C:.

and i dont find any reason why there is this tight security

Whether you see the reason or not, it's there anyway. If you make software commercially, then get accustomed to the new world order.
 

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
well hope they change this in win 7 or else i will change over to a copy of xp i have saved under my bed

vista is not at all programmer friendly its only games friendly (iam a gamer so i am happy)

well thanks mechbgon that seems to work
but i still still i stick wid my opinion
as soon as i figure how to make dx10 work in xp iam off this vista
i was only using vista for dx10 for my assassins creed now that i have played it
its bye bye to vista
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
Originally posted by: ganesh1

@snapster :
now i cannot run every single of the programs wid administritive privileges and besides how to get those privileges for programs say i have c.exe then how to get privileges for em
and i dont find any reason why there is this tight security i mean we used to make do with xp with no security at all and even inspite of all these securities i had a to face a Trojan attack

i mostly code for my friends pr i usually code some childish programs which almost always have to do some thing or the else with files ...........

i just need to know how to give these privileges to javac which is in my c drive to be able to out put files to my d,e,c drives ....

It's the same in W7. Running programs as admin is just the quick way to get them to work as they used to, but it's not the proper way. Vista added this security to lessen trojan / malware attacks as they usually try writing to system folders and registry keys.

Given you program you actually have a choice with your applications, either write to a folder you have permission to do so like user's profile folder, or ask for elevation when you want to write.
 

Snapster

Diamond Member
Oct 14, 2001
3,916
0
0
There's no need to shout!

All you need to do is right click the exe which you want to run with admin permissions and select run as administrator. If you are compiling via command line you'll need to run cmd.exe as adminstrator.
 

polarbear6

Golden Member
Jul 14, 2008
1,161
1
0
sory i wasnt shouting my caps was on :p

so is there a way thru which i can at mass get admin privileges for everything in one go that i would'nt be bothered everytime :))