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

REGEDIT question??

Status
Not open for further replies.

DazzaC

Programmer
Jun 10, 2002
209
GB
I have a batch file that calls a *.reg file and appends the contents to the registry of the machine. The batch files reads:

REGEDIT4

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"ProxyServer"="10.150.0.1:3128"

The batch file reads:

@ECHO OFF

REGEDIT /s Z:\updproxy.reg
:END

The batch file calls the *.reg file and if I remove the /s informs me that a change is about to be made, but even when I select Ok or Yes the update is not applied to the registry?

Any ideas?

Thanks
 
I think you need to specify the location of the User.dat and System.dat files

Ex;
REGEDIT /s /L:C:\WINDOWS\SYSTEM.DAT /R:C:\WINDOWS\USER.DAT Z:\updproxy.reg

TT4U

Notification:
These are just my thoughts....and should be carefully measured against other opinions.
Backup All Important Data/Docs
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top