Solved

HTML link to launch cmd file

Posted on 2014-04-28
5
335 Views
Last Modified: 2014-04-28
Hi Everyone,

I'm creating a simple html page. On the page I've got a hyperlink, pointing to a command file (.cmd). I'm running Windows 7.

When I click the link, it asks me to 'save the file or launch it'. How can I bypass this question and just launch the file?
0
Comment
Question by:SvenIA
  • 2
  • 2
5 Comments
 
LVL 22

Accepted Solution

by:
plusone3055 earned 250 total points
ID: 40027202
simple solution is launch the .cmd file through a .bat  or .vbs  script and have the URL link to the .bat or .vbs script
0
 
LVL 32

Assisted Solution

by:Big Monty
Big Monty earned 250 total points
ID: 40027365
you cannot launch a command file on the users local file, the most you can do is prompt them to download the file (which you have done) and have them launch it manually. to do it automatically would be a huge security risk,

think about it, would you want to visit a site that could run commands on your local computer?

if you're trying to run the command file on the server, plusobe's solution would be the easiest.
0
 
LVL 22

Expert Comment

by:plusone3055
ID: 40027399
Monty

Agreed
my thought was that this was a local server task :)
0
 
LVL 32

Expert Comment

by:Big Monty
ID: 40027409
i'm hoping it is, be a lot easier to resolve :)
0
 
LVL 7

Author Closing Comment

by:SvenIA
ID: 40027424
Thanks guys. There's no server involved actually. I'm just trying to create a small html dashboard for someone who isn't very handy with a pc.

My idea was to create a simple html page with some buttons, to launch some scripts and applications.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now