Registry Edits via .bat files

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Cutting a long story short, i want a batch file that changes IE's Proxys when used...

i know where the key is [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]

but how do i write a batch file that edits the proxy key?

I have little knowledge in writing batch files. I would have considered the XP newsgroup a more appropriate place to post about registry edits, but I have been told to post here by XPs Newsgroups, so dont link me back there!!
 
An XP group would be far better, as IE6 groups are used by several
operating systems. I don't use XP myself but if it was Win9x, then...

Write a .reg file with the changes in it (say whatever.reg) and then
create a simple one line batch file like:

Regedit /s whatever.reg

....Alan
 
Thanks, that works. But is there a way to change that registry key without having an associated .reg file?

i read in an NT article that i could do a

regedit /s [PLACE OF KEY

"key name"="setting

but that doesnt seem to work with XP... am i doing somthing wrong?
 
As Alan said, you should get better help if posted in XP General or customize newsgroups. XP Newusers is not as busy as XP customize.

If you don't want to use .REG files, you can use the console registry editor in XP. Type in "REG /?" in RUN box. Permits you add/change/delete the registry keys.

Use these help keywords:

"REG /?"
"REG ADD /?"
"REG DELETE /?"

Another method is to script it (REGWRITE function of VBS) would be handy!

--
Ramesh - Microsoft MVP
Windows XP Shell
http://www.mvps.org/sramesh2k

The Parasite Fight - Quick Fix Protocol:
http://aumha.org/a/quickfix.htm

------------------------------------------------
Thanks, that works. But is there a way to change that registry key without having an associated .reg file?

i read in an NT article that i could do a

regedit /s [PLACE OF KEY]

"key name"="setting"

but that doesnt seem to work with XP... am i doing somthing wrong?
 
Type in "REG /?" in RUN box

Type in "REG /?" from Command Prompt

--
Ramesh - Microsoft MVP
Windows XP Shell
http://www.mvps.org/sramesh2k

The Parasite Fight - Quick Fix Protocol:
http://aumha.org/a/quickfix.htm

------------------------------------------------

If you don't want to use .REG files, you can use the console registry editor in XP. Type in "REG /?" in RUN box. Permits you add/change/delete the registry keys.

Use these help keywords:

"REG /?"
"REG ADD /?"
"REG DELETE /?"

Another method is to script it (REGWRITE function of VBS) would be handy!

--
Ramesh - Microsoft MVP
Windows XP Shell
http://www.mvps.org/sramesh2k

The Parasite Fight - Quick Fix Protocol:
http://aumha.org/a/quickfix.htm

------------------------------------------------
Thanks, that works. But is there a way to change that registry key without having an associated .reg file?

i read in an NT article that i could do a

regedit /s [PLACE OF KEY]

"key name"="setting"

but that doesnt seem to work with XP... am i doing somthing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top