Avatar of AxFactor
AxFactor
 asked on

How can I create a batch file to add these keys at startup?

I am trying to create a batch file that will install these reg keys without needing a confirmation each time. Basically I want them to run silently, but it's not a big deal if the batch is seen installing, just that no user interaction is needed. Here's what I have:

regedit.exe C:\batch\dispensing.reg

regedit.exe C:\batch\Clinic.reg

regedit.exe C:\batch\Beulah.reg

regedit.exe C:\batch\Eclaims.reg

regedit.exe C:\batch\Hospital.reg

regedit.exe C:\batch\Timecared.reg

regedit.exe C:\batch\Workstation.reg
Windows BatchMicrosoft Legacy OSWindows XP

Avatar of undefined
Last Comment
AxFactor

8/22/2022 - Mon
D0MN01

pzozulka

Create a .BAT file and put the following code in there:
regedit C:\batch\dispensing.reg /s
regedit C:\batch\Clinic.reg /s
regedit C:\batch\Beulah.reg /s
regedit C:\batch\Eclaims.reg /s
regedit C:\batch\Hospital.reg /s
regedit C:\batch\Timecared.reg /s
regedit C:\batch\Workstation.reg /s
AxFactor

ASKER
I did try "-s" but on a tut I found it told me to input it as "[-s]" and it didn't seem to work. When I just ran that script it would still ask for confirmation and it would install the key, but a follow up error would occure saying "cannot install -s" or something to that extent.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
trythisone

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
AxFactor

ASKER
Thanx! I've never done this before and it was driving me nuts with no good tutorials I could find.