Discussion Locked

Running a registry command

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi,
I have a winnt4.0 platform.. With win95&98 clients.I have a registry script that I wrote to change the registry on certain w95&98 clients.I wrote it on a win95 computer and copied it over to a folder on the pdc. I called it setup.reg. I put this in a shared folder on the server and wrote a small batch file that does mapping and runs the setup.reg file.The batch file does the following:net use l:\\servername\sharedfolders(this works fine)

l:setup.reg
(This does not work,I get a bad command in dos)
Yet,when I logon to the clients computer and go to the directory sharedfolders and click on setup.reg it runs fine. It does import the registry. If I run it from the run command on a w/95&98 machine it works fine. Any help would be appreciated.. Thanks in advance..

5 replies

by james.pounds

Have you tried "I:\setup.reg" as the second line in the command routine? I believe NT 4.0 was very particular about command line syntax.

by joncr

You need to specify it to run in regedit:
c:\> regedit.exe /S setup.reg

This will run silently (/S) so you dont get the "This will make changes to your registry. Do you want to continue?" box.

This discussion is closed to new replies.