Delete keys in regisrty using vbs

B

Bruce

How do you delete keys in Windows XP registy with a reg
file so I can put in a vbs script for my users.
Thanks
 
M

Mike Kolitz

Bruce,

Use Google or MSDN to lookup the RegDelete method of the WScript.Shell
object, or you can lookup the Standard Registry Provider (StdRegProv) for
WMI calls to do it.
 
K

Kelly

Hi Bruce,

Regedits and vb scripts are written differently to delete keys and values.
What is it you are trying to do, exactly? Generally one doesn't delete keys
via a .reg file to put it in a .vb script. Did you perhaps mean copy/export
keys from the registry to create a vb script?

/xp_tweaks.htm

Top 10 Frequently Asked Questions and Answers
http://www.kellys-korner-xp.com/top10faqs.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top