how to make a .cmd file that will auto run from a link in windows 7, IE 9

For my company's intranet I was asked to make a page with a link installApplication.cmd.
For WinXP machines it asks if I want to run the file or save it, which is fine.  When I try with Windows 7 it opens the .cmd as a text file and just shows the code on the screen.  Same thing with FireFox.  

Any ideas on how to get this to run?  We want users to be able to install the application themselves (must be simple as they are not tech savy) instead of someone from the help desk having to go to their computer with a thumb drive.

Thanks,
Brita
BritaJAsked:
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.

Stephan_SchrandtCommented:
I think you have forgotten to access the REAL file extensions. The installapplication.cmd is a installapplication.cmd.txt. Go to folder options and enable displaying of file extensions
0
BritaJAuthor Commented:
Nope, I double checked and the extention is .cmd
Also, I have a test environment on my desktop (using Rational Software Arch.) and it works fine from there, but when I put it on our intranet server it pulls up the file.

Brita
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Stephan_SchrandtCommented:
Maybe you have to add the server as trusted zone so you can execute a script from there
0
Stephan_SchrandtCommented:
Is it working when you disable User Account Control on the client?
0
BritaJAuthor Commented:
This needs to be run from all different user's machines. I don't understand why it worked, on our intranet server, for Windows XP but not for Windows 7.
0
BritaJAuthor Commented:
I am looking for a simple "one click" solution so the users can run this installation themselves without getting the help desk involved.
0
Stephan_SchrandtCommented:
You could try to convert the cmd to an exe file and link to that instead:

google for "bat to exe"
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
hunartCommented:
Does the user have local admin rights?  If users on your network does not have sufficient permission to install an application, the installation will fail.
0
BritaJAuthor Commented:
Stephan,
I downloaded a freeware program to change it to an exe file and that seems to work.  I am going to put it up to see if my testers have any problem.

Thanks,
Brita
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 7

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.