VB Script to Delete Registry values
  Home FAQ Contact Sign in
microsoft.public.windowsxp.embedded only
 
Advanced search
POPULAR GROUPS

more...

microsoft ... embedded Profile…
 Up
VB Script to Delete Registry values         


Author: Tim Hunter
Date: Sep 29, 2006 15:00

I would like to know what component I need to add to my project that will let
my VB Script delete a registry setting related to a usb pen drive. This is
the line of code

shell.RegDelete "HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\"

And the error code that I get is 80070002 with the source being
WshShell.RegDelete
3 Comments
Re: VB Script to Delete Registry values         


Author: steves
Date: Oct 3, 2006 15:22

Software::System::System Services::Application Support:: Windows Script
Engines?

Also, do you have admin rights?

SteveS

Tim Hunter wrote:
> I would like to know what component I need to add to my project that will let
> my VB Script delete a registry setting related to a usb pen drive. This is
> the line of code
>
> shell.RegDelete "HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices\"
>
> And the error code that I get is 80070002 with the source being
> WshShell.RegDelete
1 Comment
Re: VB Script to Delete Registry values         


Author: Tim Hunter
Date: Oct 3, 2006 16:01

I already found the problem. It appears that the difference between .Net 1.1
and .Net 2.0 is quite dramatic. It total changed the registry setting I was
trying to access via my script. I changed the script and I haven't had the
problem since. Do you know why the change in the registry is so dramatic?

Tim

"steves" wrote:
Show full article (0.85Kb)
no comments
Re: VB Script to Delete Registry values         


Author: steves
Date: Oct 3, 2006 16:14

Glad you fixed it!
Sorry, I don't know.

SteveS

Tim Hunter wrote:
> I already found the problem. It appears that the difference between .Net 1.1
> and .Net 2.0 is quite dramatic. It total changed the registry setting I was
> trying to access via my...
Show full article (0.97Kb)
no comments