Delete keys in regisrty using vbs

  • Thread starter Thread starter Bruce
  • Start date Start date
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
 
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.
 
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
 
Back
Top