Delete registry entry using vbscript

  • Thread starter Thread starter Shilpa
  • Start date Start date
S

Shilpa

Hi,

I have an entry in
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
\SharedDlls" as
"D:\junk\abc.dmp"
I need to delete this entry using vbscript.
How do do this?

Regards,
Shilpa
 
Hi,

I have an entry in
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion
\SharedDlls" as
"D:\junk\abc.dmp"
I need to delete this entry using vbscript.
How do do this?

I do not know (for VBS) but you can use something like
REG.EXE DELETE "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDlls" /v "D:\junk\abc.dmp" /f
assuming you have the authority to do so. REG.EXE is included in XP IIRC
and is on the W2K installation CD in the 'Support Tools' install.
 
Back
Top