Home > Software engineering >  [for] Windows 7 using the WSH. Rewrite the registry RegWrite method
[for] Windows 7 using the WSH. Rewrite the registry RegWrite method

Time:09-27

, the following code in the xp before is ok, but the same program statements found in the Windows 7 RegWrite didn't play a role, numerical did not write to the registry, but RegRead still can read the value, the PS: HKEY_LOCAL_MACHINE \ SYSTEM \ \ 000 \ WPA SPI the key value has been created, is the value of it can't write

For what reason?

Consult thanks a lot!

 
Dim the WSH As Object

On the Error Resume Next
Set the WSH=CreateObject (" WSCRIPT. SHELL ")
The WSH. RegWrite "HKEY_LOCAL_MACHINE \ SYSTEM \ \ 000 \ SPI WPA", "test"
MsgBox WSH. Regread (" HKEY_LOCAL_MACHINE \ SYSTEM \ \ 000 \ SPI WPA ")

CodePudding user response:

No one know?

CodePudding user response:

Not enough permissions,
Writes a 32-bit and a 64 - bit registry,
I guess,
  • Related