This is a discussion on Running an APP from a Web Page ? within the Windows Web Servers forums, part of the Web Server and Related Forums category; Dear Friends, Enviro: Apache 2.0.54 with a CGI page being shown to viewer. Also, I've done quite ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Dear Friends,
Enviro: Apache 2.0.54 with a CGI page being shown to viewer. Also, I've done quite a bit of work on localhost but nothing 'live' so far (i.e., almost a newbie). Question : What do I create on my webpage for the viewer to 'run' an app (c-based executable) on *their* local machine while they are viewing my page ? TIA, -Mel Smith |
|
|||
|
On Mon, 18 Apr 2005 11:20:19 -0600, "Mel Smith"
<medsyntel@aol.com> wrote: >Dear Friends, > > Enviro: Apache 2.0.54 with a CGI page being shown to viewer. Also, >I've done quite a bit of work on localhost but nothing 'live' so far (i.e., >almost a newbie). > >Question : > > What do I create on my webpage for the viewer to 'run' an app (c-based >executable) on *their* local machine while they are viewing my page ? > >TIA, > >-Mel Smith Just put it in your usual web page folder and make a link to it. When the link is clicked, the client will be given a choise to run, download, or cancel. Then all they have to do is click run. But you know they would be total idiots to do that. ;-) |
|
|||
|
Si says:
> > Just put it in your usual web page folder and make a link to it. > When the link is clicked, the client will be given a choise to > run, download, or cancel. Then all they have to do is click run. > But you know they would be total idiots to do that. ;-) Si, To clarify my question: The app (i.e., a c-based executable) is on *their* local machine. When my client visits my website, I want a button or link on my webpage so that when it is clicked, my app starts running and does some database work, some security work, then starts up an FTP process to send/retrieve files to/frommy FTP Server, then exits so that the user can do more 'clicking' on my page or exit. So, did I understand you correctly, that they would have an option to 'download' the app (when it is already on their machine) ?? TIA for a bit more advice -Mel Smith |
|
|||
|
On Mon, 18 Apr 2005 18:46:47 -0600, "Mel Smith"
<medsyntel@aol.com> wrote: >Si says: > >> >> Just put it in your usual web page folder and make a link to it. >> When the link is clicked, the client will be given a choise to >> run, download, or cancel. Then all they have to do is click run. >> But you know they would be total idiots to do that. ;-) > >Si, > > To clarify my question: > > The app (i.e., a c-based executable) is on *their* local machine. When >my client visits my website, I want a button or link on my webpage so that >when it is clicked, my app starts running and does some database work, some >security work, then starts up an FTP process to send/retrieve files >to/frommy FTP Server, then exits so that the user can do more 'clicking' on >my page or exit. > > So, did I understand you correctly, that they would have an option to >'download' the app (when it is already on their machine) ?? > >TIA for a bit more advice Since you should know where the file to run is located on their machine, make a batch file for them to download or run to do the deed. Some anti virus software may object to such activities. You might try something like below. @echo off start "%windir%\Program Files\my_ftp_program.exe" |
|
|||
|
Si says:
> Since you should know where the file to run is located on their > machine, make a batch file for them to download or run to do the > deed. Some anti virus software may object to such activities. You > might try something like below. > > @echo off > start "%windir%\Program Files\my_ftp_program.exe" Si, Yes, I certainly know where on *their* machine the .exe is located, and I certainly know and use the 'Start' command form my other apps (e.g.,, starting a report writer), *but* what/where/how on my webpage (where my user is currently gazing) do I put something for them to 'click' on to get the ball rolling ?? TIA, -Mel Smith |
|
|||
|
On Tue, 19 Apr 2005 09:02:18 -0600, "Mel Smith"
<medsyntel@aol.com> wrote: >Si says: > >> Since you should know where the file to run is located on their >> machine, make a batch file for them to download or run to do the >> deed. Some anti virus software may object to such activities. You >> might try something like below. >> >> @echo off >> start "%windir%\Program Files\my_ftp_program.exe" > >Si, > > Yes, I certainly know where on *their* machine the .exe is located, and >I certainly know and use the 'Start' command form my other apps (e.g.,, >starting a report writer), *but* what/where/how on my webpage (where my user >is currently gazing) do I put something for them to 'click' on to get the >ball rolling ?? Try putting the batch file in a folder on your webserver and make an html link to it like below on your web page. <a href="http://your.webserver.com/ringin.bat" >Click here to get the ringin batch file</a> Below is a ringin bat file you can experiment with (copy and paste in notepad and save as ringin.bat). It has sndrec32 play the ringin wave file on a windows computer. It should pretty much duplicate what you want to do. You can put the ringin.bat file on your desktop, double click it, and see if it plays the ringin.wav file. @echo off start sndrec32.exe /play /close %windir%\media\ringin.wav |
|
|||
|
Si,
Thanks, I'll give it a try ! -Mel Smith > > Try putting the batch file in a folder on your webserver and make > an html link to it like below on your web page. > > <a href="http://your.webserver.com/ringin.bat" >Click here to get > the ringin batch file</a> > > Below is a ringin bat file you can experiment with (copy and > paste in notepad and save as ringin.bat). It has sndrec32 play > the ringin wave file on a windows computer. It should pretty much > duplicate what you want to do. You can put the ringin.bat file on > your desktop, double click it, and see if it plays the ringin.wav > file. > > @echo off > start sndrec32.exe /play /close %windir%\media\ringin.wav |