/    Sign up×
Community /Pin to ProfileBookmark

Opening a program

Hi There

I was wondering if anyone know how to open a progaram, from a web page link..

This web page i’m speaking of is just for me to run on my local machine, i’m using Apache, and im trying to make a web page for my little sister so when she starts up her IE she can go to one of her games or she can search the Internet.. There is a very long story why to do this but i think this can be great for her just not sure how to do that..

Because if i put

[code=php]<a href=”c:/program files/game/game.exe”>Games</a>[/code]

It wants me to download right away how can i avoide this and just open it and run it.

to post a comment
HTML

14 Comments(s)

Copy linkTweet thisAlerts:
@pyroFeb 11.2004 — Like as in, run a virus?
Copy linkTweet thisAlerts:
@RedheadauthorFeb 11.2004 — No not a virus i dont know anything about that, it's a game something like magic school bus.
Copy linkTweet thisAlerts:
@pyroFeb 11.2004 — My point was, if you could run an .exe file (even for a game) a script kiddie could run a virus.
Copy linkTweet thisAlerts:
@RedheadauthorFeb 11.2004 — OH OK Yes sorry, still learning here ?
Copy linkTweet thisAlerts:
@pyroFeb 11.2004 — np. ?
Copy linkTweet thisAlerts:
@RedheadauthorFeb 11.2004 — So what do you think, can this be done? or am over my head hear and it can not be done!
Copy linkTweet thisAlerts:
@pyroFeb 11.2004 — No, you can't run an .exe without promting your users. Best bet it probably to just have them save the file and run it from their own computer.
Copy linkTweet thisAlerts:
@PhillMcFeb 11.2004 — [i]Originally posted by Redhead [/i]

[B]Hi There



I was wondering if anyone know how to open a progaram, from a web page link..



This web page i'm speaking of is just for me to run on my local machine, i'm using Apache, and im trying to make a web page for my little sister so when she starts up her IE she can go to one of her games or she can search the Internet.. There is a very long story why to do this but i think this can be great for her just not sure how to do that..



Because if i put

[code=php]<a href="c:/program files/game/game.exe">Games</a>[/code]

It wants me to download right away how can i avoide this and just open it and run it. [/B][/QUOTE]

You said this page runs locally, right? If you did, read on, if not, ignore the post.

Like pyro said, it's not gonna happen with it prompting for download. When it prompts for download, don't click save, click 'open'. That should run it from it's current location. ?
Copy linkTweet thisAlerts:
@TheBearMayFeb 11.2004 — Actually, if it's local, and you play around with the security settings for the My Computer security zone you can eliminate the download message (on IE at least) and the security warning for the ActiveX component by using:

[code=php]
function run(file) {
var ws = new ActiveXObject("WScript.Shell");
try{
ws.run(file);
} catch (Exception){
alert ("file not found");
}
}
....
<a href=# onclick="run('c:/program files/game/game.exe')" >Games</a>[/code]
Copy linkTweet thisAlerts:
@PhillMcFeb 11.2004 — Ummm.....What ^ He ^ Said, lol.
Copy linkTweet thisAlerts:
@RedheadauthorFeb 11.2004 — Ok that sounds good i'll try that in a bit after dinner and ill let everyone know how i made out ok.

Thanks So Very Much?
Copy linkTweet thisAlerts:
@pyroFeb 11.2004 — [i]Originally posted by Redhead [/i]

[B]just for me to run on my local machine[/B][/QUOTE]
Why do I always miss these parts? :o
Copy linkTweet thisAlerts:
@Paul_JrFeb 12.2004 — [i]Originally posted by pyro [/i]

[B]Why do I always miss these parts? :o [/B][/QUOTE]

You may be a Super Moderator, but you're still human. :p
Copy linkTweet thisAlerts:
@pyroFeb 12.2004 — [i]Originally posted by Paul Jr [/i]

[B]...but you're still human.[/B][/QUOTE]
Yeah, but I'm working on that part... :p
×

Success!

Help @Redhead spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...