rowfei
asked on
Add & Edit registry key valume VBScript
Need create a vbScript to to the following steps:
1) To verify if the following key already exist. If it is, then a message pops up " The key already exist." Otherwires, go to step 2.
\\HKEY_LOCAL_MACHINE\Softw are\Micros oft\Office \11.0\Acce ss\Securit y\Level
the key of type DWORD and set the value to 1
2) to create this new Registry key:
\\HKEY_LOCAL_MACHINE\Softw are\Micros oft\Office \11.0\Acce ss\Securit y\Level
Create the key of type DWORD and set the value to 1
Thanks
1) To verify if the following key already exist. If it is, then a message pops up " The key already exist." Otherwires, go to step 2.
\\HKEY_LOCAL_MACHINE\Softw
the key of type DWORD and set the value to 1
2) to create this new Registry key:
\\HKEY_LOCAL_MACHINE\Softw
Create the key of type DWORD and set the value to 1
Thanks
ASKER
Thanks, rodriguesp.
I would like to add some more to the script to step 1 & 2.
Addd to Step 1:
If the Level value is not 1, then change it to 1 with confirm message "The value have been changed."
Add to Step 2:
1) After creaate the new registry key and then a confirm message pops up.
Thanks a lot.
I would like to add some more to the script to step 1 & 2.
Addd to Step 1:
If the Level value is not 1, then change it to 1 with confirm message "The value have been changed."
Add to Step 2:
1) After creaate the new registry key and then a confirm message pops up.
Thanks a lot.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you so much, Paulo. It works really well.
I think rowfei should had accepted my answer as a solution
Regards
Paulo Rodrigues
Regards
Paulo Rodrigues
ASKER
Sorry, Paulo. I thought I have accepted already. Sorry about that. Many thanks to you for all of your help.
Regards
Paulo Rodrigues
Open in new window