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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I launch an application from asp page?

Status
Not open for further replies.

mellynda

Programmer
Mar 14, 2003
2
FR
Hello,
I'm trying to launch an application (.exe) from an asp page.
Here is what I write:
<% Dim variable_execution
Set variable_execution=Server.CreateObject(&quot;ASPExec.Execute&quot;)
variable_execution.application = &quot;cmd&quot;
variable_execution.parameters=&quot;/c c:\tcpclient.exe&quot;
variable_execution.ShowWindow = True
Result_execution = variable_execution.ExecutedosApp response.write(Result_execution)
%>
I obtain this error:
ERROR: Could not create process
and when I write
Result_execution = variable_execution.ExecuteWinApp
instead of
Result_execution = variable_execution.ExecutedosApp
I obtain
cmd /c c:\tcpclient.exe
but the application didn't start!
I don't understand why. When I type c:\tcpclient.exe directly on msdos, it works!
Can someone help me?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top