Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Delete value based on content of key in registry

Status
Not open for further replies.

Alanukdude

Technical User
Nov 13, 2002
20
GB
I've got a virtual drive emulator which after install gives itself a drive letter based on whats free.

the key puts itself under HKEY_LOCAL_MACHINE\SYSTEM\MountedDevices

the values called "\DosDevices\E:"

Unfortunatly it wont be the same to every PC on the network.

we want a standard across the network of this virtaul drive of H:

being a simpleminded man, i would like to make up a script, i would prefer kix, but vbs will do.

the hex data contained within the key is the same on all machines, so using that, can i delete all known instances of \DosDevices\#: that contain the data of

5c003f003f005c00530043005300490023004300640052006f006d002600560065006e005f005a00540065006b0057006100720065002600500072006f0064005f005f004f0043004400450026005200650076005f0031002e00300030002300310026003200610066006400370064003600310026003000260030003000300023007b00350033006600350036003300300064002d0062003600620066002d0031003100640030002d0039003400660032002d003000300061003000630039003100650066006200380062007d00

so i can reinsert the value that i've made up in kix.

can anyone help?
 
Hi alanloughlin;

Try this link:

This has sample VB code to query and modify the registry.

HTH
Ed Please let me know if the suggestion(s) I provide are helpful to you.
Sometimes you're the windshield... Sometimes you're the bug.
smallbug.gif
 
only problem with that is the two As Any statements within it are not compatable with vb .net.

any chance of a compatable version
 
had the chance to look at this at home, i dont understand that side of vb, is there any other help out there?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top