Thread: Open Program from HTML Link
Results 1 to 11 of 11
Related
-
Is there an html target setting to open link in new IE7 tab? Forum: HTML Forum
Replies: 5 -
how to open save/open dialog using HTML Forum: HTML Forum
Replies: 1 -
Open A Directory With A Link Forum: HTML Forum
Replies: 5 -
Link in web page won't open Forum: HTML Forum
Replies: 8
-
09-07-2006, 04:37 PM #1
Open Program from HTML Link
Hi. I would like to put a link in an HTML page that will open up Solitaire (%SystemRoot%\system32\sol.exe). What would the code be?
Thank You!
-
09-07-2006, 10:07 PM #2
Re: Open Program from HTML Link
Hello-
So far as I know, any link to an executable (.exe) file will result in the browser thinking you want to download it.
-
09-08-2006, 03:38 AM #3
Re: Open Program from HTML Link
Originally Posted by fitzal
Code:file://%SystemRoot%/system32/sol.exe
-
09-08-2006, 08:05 AM #4
Re: Open Program from HTML Link
[quote=DeadMeatGF]
Code:file://%SystemRoot%/system32/sol.exe
-
09-08-2006, 10:34 AM #5
Re: Open Program from HTML Link
Not possible without client side input. For security purposes (duh) the user will get the prompt asking to "save" or "run"
D
-
09-11-2006, 08:54 AM #6
-
05-03-2010, 09:21 PM #7
Re: Open Program from HTML Link
hey man,
sure it can be done !
use a VB script.
they're easy to write, and you can
have the script open the program for you,
and have the script triggered by an HTML link.
just google for millions of examples.
cheers
Jeff Noyes
Vendor-Lock
-
05-03-2010, 09:29 PM #8
Re: Open Program from HTML Link
use this in your VBScript
Code:strProgramPath = "C:\Windows\system32\calc.exe" set objShell = createobject("Wscript.Shell") objShell.Run strProgramPath
Jeff Noyes
Vendor-Lock
-
05-03-2010, 09:54 PM #9
Re: Open Program from HTML Link
or even more simple,
if you know where the program is on the computer,
you can use a full URL to the hard-drive.
like this:
Code:<html> <head> <title>Your Document</title> </head> <body> <a href="C:\Program Files\Lavasoft\Ad-Aware\Ad-Aware.exe">Run Ad-Aware Click Here</a> </body> </html>
but you can give instructions on the webpage to " click run "
cheers
Jeff Noyes
Vendor-Lock
-
05-03-2010, 09:55 PM #10
Re: Open Program from HTML Link
The VBScript will open the program without the " run or save " window.
cheers
Jeff Noyes
Vendor-Lock
-
07-19-2010, 11:27 PM #11
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum