Messing with Registry Help Required

  • Thread starter Thread starter Kardon Coupé
  • Start date Start date
K

Kardon Coupé

Can anybody help me, I know how to add things to the registry, after
exporting, double clikcing, etc...... is there a way of having a registry
addition deleted...

The reason I ask this, I have some things starting via the registry, that
dont seem to run if I put them via the start-up in the menu...but I don't
always want them running, so I want to be able to delete them with a double
click, and then re-add the exported file, with another double click....if I
want them to start on bootup

Can it be done?

TIA
 
If you want to remove a key and all it's underlying values then you'll need
to construct your .reg file with a - minus sign in front of the key you want
to remove.

An example file to remove a file association .zzz from HKCR
-----------------Begin File-----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.zzz]
----------------End File-------------

(note the minus sign in front of HKEY)


If you need to delete only certain values, for example the string value
"InfoTip"="Contains zzz files"

Then put a minus sign after the equals sign without "quotes", something like
"InfoTip"=-

So your .reg file would look like
----------------Begin File------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
----------------End File-------------

regedit /s filename.reg to import silently
 
That worked for me, but is there a way of incorporating the /s into the icon
I have on the desktop.....I don't wanna change the .reg file type so all
registry imports are silent, and i don't want to type everything from the
start/run box?

Dave Patrick said:
If you want to remove a key and all it's underlying values then you'll need
to construct your .reg file with a - minus sign in front of the key you want
to remove.

An example file to remove a file association .zzz from HKCR
-----------------Begin File-----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.zzz]
----------------End File-------------

(note the minus sign in front of HKEY)


If you need to delete only certain values, for example the string value
"InfoTip"="Contains zzz files"

Then put a minus sign after the equals sign without "quotes", something like
"InfoTip"=-

So your .reg file would look like
----------------Begin File------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
----------------End File-------------

regedit /s filename.reg to import silently


--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Kardon Coupé said:
Can anybody help me, I know how to add things to the registry, after
exporting, double clikcing, etc...... is there a way of having a registry
addition deleted...

The reason I ask this, I have some things starting via the registry, that
dont seem to run if I put them via the start-up in the menu...but I don't
always want them running, so I want to be able to delete them with a double
click, and then re-add the exported file, with another double
click....if
I
want them to start on bootup

Can it be done?

TIA
 
Put the *.reg files ....say in C:\reg directory. Then create shortcuts to
them with a "Target" of

%windir%\regedit.exe /s C:\reg\my.reg

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Kardon Coupé said:
That worked for me, but is there a way of incorporating the /s into the icon
I have on the desktop.....I don't wanna change the .reg file type so all
registry imports are silent, and i don't want to type everything from the
start/run box?

Dave Patrick said:
If you want to remove a key and all it's underlying values then you'll need
to construct your .reg file with a - minus sign in front of the key you want
to remove.

An example file to remove a file association .zzz from HKCR
-----------------Begin File-----------
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\.zzz]
----------------End File-------------

(note the minus sign in front of HKEY)


If you need to delete only certain values, for example the string value
"InfoTip"="Contains zzz files"

Then put a minus sign after the equals sign without "quotes", something like
"InfoTip"=-

So your .reg file would look like
----------------Begin File------------
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.zzz]
"InfoTip"=-
----------------End File-------------

regedit /s filename.reg to import silently


--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft MVP [Windows NT/2000 Operating Systems]

Kardon Coupé said:
Can anybody help me, I know how to add things to the registry, after
exporting, double clikcing, etc...... is there a way of having a registry
addition deleted...

The reason I ask this, I have some things starting via the registry, that
dont seem to run if I put them via the start-up in the menu...but I don't
always want them running, so I want to be able to delete them with a double
click, and then re-add the exported file, with another double
click....if
I
want them to start on bootup

Can it be done?

TIA
 
Hi Kardon,

Add the run key here:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\
CurrentVersion\Run

HKEY_CURRENT_USER\Software\Microsoft\Windows\
CurrentVersion\Run

From there either check and uncheck it via Start/Run/msconfig/Startup or
create a .vbs script to toggle off/on or import/export the regfile(s).
/top10faqs.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top