[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 732
  • Last Modified:

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) ?

0
yaelt
Asked:
yaelt
1 Solution
 
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
 
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now