Open a cmd prompt and type: reg /?
If that produces something then your unknown version of Windows has reg.exe and it will do the job. You might also be able to get reg.exe by installing support tools or a resource kit. If you don't have reg.exe, you could still use regedit and your batch file could create the .reg file on the fly and then delete it before exiting. Carl -----Original Message----- From: Windows Home/SOHO [mailto:[EMAIL PROTECTED] On Behalf Of Diane Poremsky Sent: Wednesday, December 14, 2005 8:47 AM To: [email protected] Subject: can a batch write to the registry? I need to change a key in the registry based on user input - can a batch write the key without calling a reg file? (ie, the key and value are in the batch itself, not a separate file that is called) The problem: the user will have 3 choices - and that means 3 regs. I'd rather use just one file... And yes, I know what I really need to do is read the key and make the change without user input (it's safe to assume if value a is in the key, then value a(1) should replace it) - but I'm too lazy (actually too hurried) to write an exe to do that right now. -- ---------------------------------------- To Change your email Address for this list, send the following message: CHANGE WIN-HOME your_old_address your_new_address to: [EMAIL PROTECTED] Note carefully that both old and new addresses are required.
