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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Registry Edit with Batch

Status
Not open for further replies.

jwillard

IS-IT--Management
Apr 29, 2004
74
US
Is it possible to edit an individual string value in the registry with a batch file? If so how do I do it.

Any help is greatly appreciated....

Example:

NAME TYPE_SZ data

VolumeLabelISOTemplate Reg ThisNeedsToBEChanged

NAME TYPE_SZ data

VolumeLabelISOTemplate Reg MakeThisBlank

Boycott Sony
 
REG HKLM\something\something\ /V VolumeLabelISOTemplate /D ""

Type REG_SZ is the default.


____________________________
Users Helping Users
 
Well I actually meant a .reg file that I could keep on my desktop to clear that value when I wanted. For anyone else who may want to know it goes like this.

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\something\something\something\IsoDoc]
"VolumeLabelISOTemplate"=""


Thanks for the reply...

Boycott Sony
 
Make a .CMD file that contains one line:
regedit /s drive:\path:\your_file.reg

Filling in for drive and path as appropriate.

Create a new desktop shortcut and point to your new .CMD file.

I would store both .CMD and .REG file in \Windows\System32



____________________________
Users Helping Users
 
To follow up on my original suggestion using REG.EXE you can use that in the .CMD file instead of using the regedit process.


____________________________
Users Helping Users
 
What if you set the key and value to the desired setting and use the Regedit "Export" to save it on your Desktop, and just right-click on that file to "Merge" it back into the Registry as and when required?
 
Nice thought Linney.

thanks

Boycott Sony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top