Hello,
I wish to make a program that will find and delete a certain folder of registry keys each day.
Would I use the Kill command? and if, so, what is the path to the registry?
How would I go about doing this?
Thanks
Jordan
Printable View
Hello,
I wish to make a program that will find and delete a certain folder of registry keys each day.
Would I use the Kill command? and if, so, what is the path to the registry?
How would I go about doing this?
Thanks
Jordan
To delete a folder you use the RmDir but you have to delete it's contents first (list all files and subfolders and delete files with Kill and folders with RmDir)
You can also search the forum for working with the registry. There are a lot of posts on that already resolved. You can search the CodeBank forum too, I am sure there are some good modules for that there.
Sounds like you are asking how to delete a folder in your
Registry and not a file system folder?
In case you want to delete a registry key look at Peets last
post in this link.
I don't understand how to do this at all.
Is there any chance that someone could help me out here?
Basically, all I want to do is delete the same folder full of keys whenever my program runs. Nothing more complicated.
How can this be done?
Thankyou
Jordan Dolan
What are the keys? If they are under the VB and VBA Program
Settings then you can use this and can you post some of your
code.
VB Code:
DeleteSetting "AppName", "Section", "Key"
My keys are :
HKEY_LOCAL_MACHINE\SOFTWARE\JDLT
(That is the folder, I wish to delete ALL keys within this folder.
How could I do this?
Thankyou
Jordan Dolan
How are you creating the key(s)? It looks like you will need to
use the RegDeleteKey API and the code in the link I posted
earlier.