VB Script to Delete Registry values

G

Guest

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
 
S

steves

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

Also, do you have admin rights?

SteveS
 
G

Guest

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
 
S

steves

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

SteveS

Tim said:
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
 

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