PDA

View Full Version : edit registry with batch file (W98)



kc78
10-15-2003, 10:48 AM
I need to create a batch file that can be executed on login that will edit the local machine section of the registry. We did a server migration this weekend but a lot of files in the registry are still pointing to the old server name so I need to easily repoint those.

How can I do this?

jdharm
10-15-2003, 11:56 AM
Insert the line

regedit /s <filename>

where <filename> is the name of the *.reg file that contains the changes desired. The /s switch causes the changes to be made without user interaction or popup notifications.

Josh
<a target="_blank" href=http://www.jdharm.net>www.jdharm.net</a>