Soldato
- Joined
- 20 Jan 2005
- Posts
- 2,722
- Location
- Whitley Bay
Hi guys.
We have a fairly common issue with some of our users which requires the deletion of a couple of .sys files and a regkey.
I want to create a batch file to delete these automatically rather than guiding them through it or remote accessing the pc.
Trouble is the reg key is a variable value so I'm not sure how to delete it.
As an example the reg key might be:
HKEY_LOCAL_MACHINE\Software\CompanyName\Licenses\123456
but the only bit that is consistant is:
HKEY_LOCAL_MACHINE\Software\CompanyName\Licenses\
Is there a wilcard I can use to delete any subkeys of Licenses regardless of their name?
Cheers
Si

We have a fairly common issue with some of our users which requires the deletion of a couple of .sys files and a regkey.
I want to create a batch file to delete these automatically rather than guiding them through it or remote accessing the pc.
Trouble is the reg key is a variable value so I'm not sure how to delete it.
As an example the reg key might be:
HKEY_LOCAL_MACHINE\Software\CompanyName\Licenses\123456
but the only bit that is consistant is:
HKEY_LOCAL_MACHINE\Software\CompanyName\Licenses\
Is there a wilcard I can use to delete any subkeys of Licenses regardless of their name?
Cheers
Si
