How do I disable the registry editor confirmation dialog popups when changing the registry via a reg file?

Environment: Windows 2003 Server (web server)

File Name: enablemdb.reg

Code:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel]
"win32"="C:\\Program Files\\Microsoft Office\\OFFICE11\\msaexp30.dll"

Background: I need to run this file several times per day because of complex issue having to do with Excel/Access DSN connections. This file is basically a switch to switch back using this file:

File: enablexls.reg
Windows Registry Editor Version 5.00

Code:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\4.0\Engines\Excel]
"win32"="C:\\WINDOWS\\system32\\msexcl40.dll"

Behavior: When I click on each of these files there are two confirmation popups that occur.

Goal:  I would like to disable these pops or have them suppressed via some macro mechanism. Because I have to run these files many times per day, clicking the confirmation dialogs is annoying.

Any suggestions?

LVL 1
djlurchAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

paradigitalCommented:
run with the switch
/s
0
djlurchAuthor Commented:
I feel dumb asking this, but how would I do that?

I have the file here: C:\HelperFolder\enablemdb.reg

To run the file I double click on it in explorer.
0
paradigitalCommented:
Easiest way is with a batch file or a shortcut to regedit.exe:
regedit.exe /s c:\helperfolder\enablemdb.reg
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

ALNMOOCommented:
crate a patch file that contains the following command


-----
regedit /S enablexls.reg

----
each time you need to change the registry just run this patch



0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ALNMOOCommented:
to crate batch file (not patch :) ) just crate a new text file write  on it
----
regedit.exe /s c:\helperfolder\enablemdb.reg
-----

change the file type to be .bat instead of txt, and just duble click the batch file whenever you need to change the registery value
 
0
djlurchAuthor Commented:
You guys are fast AND good. Got it running. There's no way to avoid having the black screen pop up is there? :)

THANKS!
0
paradigitalCommented:
Yes, avoid the black screen (command prompt) by running a shortcut instead of a batch file
0
paradigitalCommented:
To create the shortcut:
1) Go to the location you want the shortcut to be in windows explorer
2) right click, and go to new > shortcut
3) type regedit into the "location" box
4) give the shortcut a name (any name) and click finish
5) right click the shortcut and go to "properties
6) where it says Target: %windir%/regedit.exe, change it to say "%windir%/regedit.exe" /s c:\helperfolder\enablemdb.reg (including the quote marks "" around %windir%/regedit.exe)
7) Ok out of properties
8) You're done.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows Server 2003

From novice to tech pro — start learning today.