Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Closed Thread
 
Thread Tools Search this Thread Display Modes
 
Old 07-11-2009, 07:54 PM   #1
Baseband Member
 
peteyboy22's Avatar
 
Join Date: Jan 2009
Posts: 72
Default html exe link

hi, i'm real bored today, after i fixed to vista boot loader thingy, i had nothing else to do, so i thought i'd create an autorun html page for my flash drive to boot my programs from (simple .exe's not a full program)

i'm not the greatest with html, so i just need the link that will open up the program.. i googled it already and got no where, so if anyone knows a way please tell me, and if you don't think it's possible aslo tell me, cuz i don't wanna waste my time
__________________

peteyboy22 is offline  
Old 07-12-2009, 04:22 PM   #2
Fully Optimized
 
vampist's Avatar
 
Join Date: Oct 2008
Location: USA
Posts: 2,404
Default Re: html exe link

Quote:
Originally Posted by peteyboy22 View Post
hi, i'm real bored today, after i fixed to vista boot loader thingy, i had nothing else to do, so i thought i'd create an autorun html page for my flash drive to boot my programs from (simple .exe's not a full program)

i'm not the greatest with html, so i just need the link that will open up the program.. i googled it already and got no where, so if anyone knows a way please tell me, and if you don't think it's possible aslo tell me, cuz i don't wanna waste my time
so you want html to open a .exe file automatically or when clicked on a page?
I don't think this is possible for security reasons.
As far as I know you can only link to the file and have it download(save) or open. Which would depend on the users security settings in the browser being used.
__________________

__________________
Everyone's Favorite Turd xD
ET: "Phone home!"
Geek: "ping 127.0.0.1"

"If that guy knew half the $h*t that I know, his fuzzy little head would explode. " - Matthew Farrell
vampist is offline  
Old 07-12-2009, 05:51 PM   #3
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: html exe link

It's not possible to do this just using HTML, at least not run a program. As pointed out already that'd be silly for security reasons, can you imagine if any website that you pointed your browser at could run whatever it wanted? You can pop up a box that'll ask you whether you want to save or run the program, but that sounds different to what you're after.

This to me sounds like a classic case of using the wrong language for the job, you want something that'll compile and execute on your system, that way you can run whatever programs you like easily - so any language like C, C++, Java, VB.NET etc. would do what you wanted pretty easily. But launching programs directly from HTML pages? That's a complete no no!
berry120 is offline  
Old 07-12-2009, 06:36 PM   #4
j03
~~~~~~~~
 
Join Date: Jan 2005
Location: Wales
Posts: 5,556
Send a message via MSN to j03
Default Re: html exe link

Without writing an ActiveX control (or similar), you couldnt do that. As the above have mentioned, you cannot run things straight from a web browser, as it would be a serious security issue.

If I wanted to do it quickly, I'd consider making a word document with a series of buttons that linked to macro's. These macro's would simply have

shell("programpath/programname.exe")

in them...
j03 is offline  
Old 07-12-2009, 06:58 PM   #5
Site Team
 
berry120's Avatar
 
Join Date: Jul 2009
Location: England, UK
Posts: 3,425
Default Re: html exe link

Perhaps a stupid point, but wouldn't the simplest way just be a folder of shortcuts?
berry120 is offline  
Old 07-12-2009, 08:00 PM   #6
Daemon Poster
 
dudelewis1's Avatar
 
Join Date: Jun 2009
Posts: 765
Default Re: html exe link

I would probably do a .bat.
__________________
Athlon II x2 255 @ 3.1ghz | 4 gb ddr3 ram| 500+80 gb wd hd | Sapphire 5450 | Win7 | Hanns G 20"

Toshiba Satellite | Core2Duo @ 2.0 ghz | 3gb ram | 250 gb hd | lolintelgma | Ubuntu 10.04
dudelewis1 is offline  
Old 07-19-2009, 12:07 PM   #7
Baseband Member
 
peteyboy22's Avatar
 
Join Date: Jan 2009
Posts: 72
Default Re: html exe link

well i know there is a way.. yoyogames.com when you play a game, you can play it without opening it, and i know it's stupid, i'm just wanted to do something cool with my flash drive
__________________

peteyboy22 is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 08:51 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0