Jump to content
Sign in to follow this  
huajin

the regedit cannot write

Recommended Posts

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

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

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  

×
×
  • Create New...