Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting with .reg files
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00167232
Message ID:
00167346
Views:
23
>Hi all,
>
>I know this a bit off topic, but I figured someone here probably knows how to do it. So...I'm creating a .reg file to modify my registry. What I'm trying to do is modify entries under a key, so that it only has 2 string value entries. All I can figure out how to do is modify the values and add new keys. The key already exists. And there are too many string values there. I want to delete all of the string values under this key and add the two I want. Adding is no problem, but how do I delete?

I've never used a .REG file to delete keys, so if it -has- to be a .REG file, someone else will have to pipe in here. OTOH, you can delete registry keys and values programmatically, either using Win32 API calls (this is how the registry class available for download here on UT does it, as does the FFC REGISTRY class in VFP6) or via an Automation object (Wscript.Shell has a method to delete registry keys and key values; I'm not certain, but there may be similar methods in Shell.Application, and I'm on the road without a handy copy of MSDN...)

>
>TIA
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform