We help IT Professionals succeed at work.

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

Last Modified: 2010-04-21
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
Watch Question

Have you tried '-s'?


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


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.
This one is on us!
(Get your first solution completely free - no credit card required)


Thanx! I've never done this before and it was driving me nuts with no good tutorials I could find.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.