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

How do I create string Registry value from text file code 1

Status
Not open for further replies.

SBendBuckeye

Programmer
May 22, 2002
2,166
US
I found some code similar to the following to create a registry entry from a .reg text file. But there was no example for creating a string value. Can anyone help me out?

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\MyAppName\MyKeyName\]
"Media Request Timeout Seconds"=dword:30

Thanks!



Have a great day!

j2consulting@yahoo.com
 
Duh! Thanks, Paul! Guess who had a brain cramp?

Have a great day!

Have a great day!

j2consulting@yahoo.com
 
For the benefit of others, after I took Paul's advice, here is an example. Note the doubled backslashes.

REGEDIT4

[HKEY_LOCAL_MACHINE\Software\MyAppName\MyKeyName\]
"Media Request Timeout Seconds"=dword:30
"TempDir"="c:\\windows\\TEMP\\"

Thanks again Paul!

Have a great day!

j2consulting@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top