Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running an EXE Locally

Status
Not open for further replies.

mdr227

Programmer
Nov 17, 2000
114
US
Is it possible (and if so how is it done) to run an exe file locally on a client PC from within an ASP page? For example, can I open MS Access locally by having a user click on a link in a web page?
 
The server will not be able to do this. however as stated in the other thread on text files client scripting can. but I think you need to answer the questions raised and commented on in that thread first to get into that side of things.

____________________________________________________
[sub]The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-3811[/sub]
onpnt2.gif
 
Running exe files from a browser is a bit of a security risk so it's generally not advised. However, if you use something like :

<script type=&quot;text/javascript&quot; language=&quot;JavaScript&quot;>
function runCmd() {
var oShell = new ActiveXObject(&quot;Shell.Application&quot;);
var cmdToRun = &quot;C:\winnt\Notepad.exe&quot;;
oShell.ShellExecute(cmdToRun,&quot;&quot;,&quot;&quot;,&quot;open&quot;,&quot;1&quot;);
}
</script>

and muck about with the permissions, you might be able to do it (I think the browser has to be able to interact with the desktop or something).

Other options are you could try ASPExec ( but I think that is just for running apps on the web server.

As for running Access though, you should find that Access has a nice &quot;Create data access page&quot; function that converts the tables to ASP code for you which might be worth a try.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top