Sign in to follow this  
Followers 0
huajin

the regedit cannot write

6 posts in this topic

#1 ·  Posted (edited)

i tried to write the regedit value, but not work

Local $regPath = "HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer"
Local $regKey = "NoDrives"
 
Local $res = RegWrite($regPath, $regKey, "REG_DWORD", 1)
 
it will not work as admin.
 
 
just only at windows 7 and above.
Edited by huajin

Share this post


Link to post
Share on other sites



Did you want to hide drive A: ?

A=1


Make yourself sheep and the wolves will eat you - Benjamin Franklin

Share this post


Link to post
Share on other sites

it works for me, the code seems to be good.

Can you add ConsoleWrite(@error) after the RegWrite line ?

do you work at windows 7???

at xp , it is ok.

Share this post


Link to post
Share on other sites

Did you want to hide drive A: ?

A=1

yes

Share this post


Link to post
Share on other sites

Now, i just put it work at xp.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0