Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

creating a registry file 1

Status
Not open for further replies.

torturedmind

Programmer
Joined
Jan 31, 2002
Messages
1,052
Location
PH
i want to create a registry file (say myentry.reg) of the following registry value, how should i do it?

Code:
HKEY_CURRENT_USER\Software\CustomEntry\BypassSaveAs 
(0 = show Save as dialog box after spooling, 1 = do not show Save as dialog box.) 
 
Note: the values above are of type string (REG_SZ), not DWORD.

should my myentry.reg be containing the following:

Code:
[HKEY_CURRENT_USER\Software\CustomEntry\BypassSaveAs]
@="1"

or it should contain this one:

Code:
[HKEY_CURRENT_USER\Software\CustomEntry]
"BypassSaveAs"="1"

thanks for the help you'll all extend. peace! [peace]

kilroy [trooper]
philippines

"Illegitimis non carborundum!"
 
In your 2nd example -
[HKEY_CURRENT_USER\Software\CustomEntry\BypassSaveAs]
@="1"
@ means the Default value will be set to 1
=======================================

In your 3rd example -
[HKEY_CURRENT_USER\Software\CustomEntry]
"BypassSaveAs"="1"
This is just another entry, which could be one of many
======================================

Look down
------------------------start cut here--------------------
REGEDIT4

[HKEY_CURRENT_USER\Software\CustomEntry]
"BypassSaveAs"="1"

----------------------------end cut here--------------
^^^^^^^
Remember to add a carraige return (hit Enter after "1") -- at the end of the file as shown above arrows. You can see this easily bt viewing an exported Reg file





TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
tt4u

thank you for taking the time to answer my query. your input will be a very big help to my current project. but honestly am very hesitant messing with registry so i thought i'd ask help from an expert. [wink]

again, many thanks. peace! [peace]

kilroy [trooper]
philippines

"Illegitimis non carborundum!"
 
you're quite welcome ..
just to follow up a bit more --
------------------
In your 2nd example -
[HKEY_CURRENT_USER\Software\CustomEntry\BypassSaveAs]
@="1"
@ means the Default value will be set to 1 And a folder (RegKey) will be created in the left pane called BypassSaveAs - and the rgiht pane will have only Default=1
==============
whereas;
In your 3rd example -
[HKEY_CURRENT_USER\Software\CustomEntry]
"BypassSaveAs"="1"
This is just another entry, which could be one of many but no RegKey called BypassSaveAs will be created (which doesn't seem it would need to be using this kind of entry - similar to any Dword or Binary entry from TweakUI - such as "NoSaveSettings"="dword:00000001").

more stuff to learn here;
And This One Here
will give you an awesome view of all the intricacies of an exported Registry including Names, Data, Values - remember this is for NT...similar to 95/98 in many regards, but not exactly

TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
great links sir! tons of things to learn.

am i allowed to give another star? [tongue]

kilroy [trooper]
philippines

"Illegitimis non carborundum!"
 
Q. am i allowed to give another star?
A. no, but that's fine - 1 is plenty enough
enjoy!
[rockband]

TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top