regedit arguments

i've used this command "regedit file.reg" inorder to insert entries to the registry.
is there a way to remove registry entries by using the regedit command ?
is there a different way ( i m searching 4 an automatic way) ?

yaeltAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jhanceCommented:
Yes, you can use:

REGEDIT /D _path_to_key_to_delete_

Since you asked this in the programming area, however, I don't recommend this approach at all.  Using REGEDIT like this is risky.  If your program needs to add or delete registry keys, you should use the RegXXX API functions to do the work.  See the docs on RegOpenKeyEx(), RegCreateKeyEx(), RegDeleteKey().
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
yaeltAuthor Commented:
i've tried the REGEDIT /D _path_to_key_to_delete_
but it didnt work :-(
can u give me an example on it please ?

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.