Hi,
I am not sure if this is in the correct section but it seemed to be the most appropriate.
I am creating a web page stored on my PC from which I have quick access to launch my games. E.g I the page with a picture of the game and a link to launch the game.
The problem I am having is when I provide a link directly to the executable it launches and then flicks back to the desktop.
What I assume happens is when I click the link it copies the .exe to a Temporary Floder and then launches it which is why the game doesnt fully launch (because the paths are no longer correct).
Has anyone got any advice on how i can launch my games by a direct link?
(One idea I had was to create a shortcut to each exe and use an IFrame with the Windows Explorer shortcut in it. But this is hardly an ideal solution)
Thanks for any help offered. And sorry if this is in the wrong section (my pages are PHP pages).Best I could find is a .NET solution
<!-- m --><a class="postlink" href="http://weblogs.asp.net/csharpfaq/archive/2004/06/01/146375.aspx">http://weblogs.asp.net/csharpfaq/archiv ... 46375.aspx</a><!-- m -->
I will, however, slide this into the PHP Sub Forum to see if anyone in there knows of a way in PHP to do this.
Please hold while we transfer your call......Really dont know about this but you could try including the executable into your page.Tried that but it didn't work. I got Parse error: parse error, unexpected T_LNUMBER in D:\Games\Need For Speed Underground\Speed.exe on line 3847Ok, it was worth a try though, at least it got to line 3847 before it found something it doesn't like
I will keep searching around for you.why dont you just make a folder with shortcuts in it?
EDIT: Although one way i could find it to work is by using .bat files (does not work in firefox, but does in ie).
Ok, open up notepad, and insert something like this
nfs.bat
@echo off
"D:\Games\Need For Speed Underground\Speed.exe"
then in a html file, mearly place a link to the bat file
<html>
<head><title>games</title></head>
<body>
<a href=http://www.htmlforums.com/archive/index.php/"nfs.bat">Need For Speed: Underground</a>
</body>
</html>
When using Windows XP SP2, it produces a warning asking if you are sure you want to open the file.
i still dont see why you just dont use shortcuts.....what? why? this has nothing to do with serverside. make sure you hav eactive desktops on and it might work. but I have to say, a lot of people have been trying this and to the surprise it doesn't work. there is a vbscript way to do it but still flakey.
why not use just shortcuts? like boxface suggested?Thanks for all your advice.
I was having difficulty linking to Shortcuts in Mozilla but if I just use IE to view the page it works (with a popup "Open"/"Save" box) so i'll just force it to open in IE.
Thanks again!Yeah I would like to know because I have had web installs and they have used client-side JS to Download the file, IM assuming C-S javascript or java was used to run the installer.
I am not sure if this is in the correct section but it seemed to be the most appropriate.
I am creating a web page stored on my PC from which I have quick access to launch my games. E.g I the page with a picture of the game and a link to launch the game.
The problem I am having is when I provide a link directly to the executable it launches and then flicks back to the desktop.
What I assume happens is when I click the link it copies the .exe to a Temporary Floder and then launches it which is why the game doesnt fully launch (because the paths are no longer correct).
Has anyone got any advice on how i can launch my games by a direct link?
(One idea I had was to create a shortcut to each exe and use an IFrame with the Windows Explorer shortcut in it. But this is hardly an ideal solution)
Thanks for any help offered. And sorry if this is in the wrong section (my pages are PHP pages).Best I could find is a .NET solution
<!-- m --><a class="postlink" href="http://weblogs.asp.net/csharpfaq/archive/2004/06/01/146375.aspx">http://weblogs.asp.net/csharpfaq/archiv ... 46375.aspx</a><!-- m -->
I will, however, slide this into the PHP Sub Forum to see if anyone in there knows of a way in PHP to do this.
Please hold while we transfer your call......Really dont know about this but you could try including the executable into your page.Tried that but it didn't work. I got Parse error: parse error, unexpected T_LNUMBER in D:\Games\Need For Speed Underground\Speed.exe on line 3847Ok, it was worth a try though, at least it got to line 3847 before it found something it doesn't like
I will keep searching around for you.why dont you just make a folder with shortcuts in it?
EDIT: Although one way i could find it to work is by using .bat files (does not work in firefox, but does in ie).
Ok, open up notepad, and insert something like this
nfs.bat
@echo off
"D:\Games\Need For Speed Underground\Speed.exe"
then in a html file, mearly place a link to the bat file
<html>
<head><title>games</title></head>
<body>
<a href=http://www.htmlforums.com/archive/index.php/"nfs.bat">Need For Speed: Underground</a>
</body>
</html>
When using Windows XP SP2, it produces a warning asking if you are sure you want to open the file.
i still dont see why you just dont use shortcuts.....what? why? this has nothing to do with serverside. make sure you hav eactive desktops on and it might work. but I have to say, a lot of people have been trying this and to the surprise it doesn't work. there is a vbscript way to do it but still flakey.
why not use just shortcuts? like boxface suggested?Thanks for all your advice.
I was having difficulty linking to Shortcuts in Mozilla but if I just use IE to view the page it works (with a popup "Open"/"Save" box) so i'll just force it to open in IE.
Thanks again!Yeah I would like to know because I have had web installs and they have used client-side JS to Download the file, IM assuming C-S javascript or java was used to run the installer.