|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Minimize the cost of deploying database applications. Advantage Database Server or Microsoft SQL Server – Which One is Right for You? Learn now! |
|
#1
|
|||
|
|||
|
All,
With .asp, how do I call another program? I would like to have my .asp script make a call to a PERL script, wait for the PERL script to finish, and then continue with what is/isn't returned from PERL. I know in PERL this is simply done: system(theASPprog.asp). No fork is created, so the PERL prog waits for the .asp to finish. How do I do this with ASP? Thanks! |
|
#2
|
|||
|
|||
|
server.createobject(
might be useful, i have no idea about perl though... |
|
#3
|
|||
|
|||
|
The easiest is to use microsofts windows scripting host
set WshShell = CreateObject("WScript.Shell") WshShell.Run "format a:" But you may have to download it if it didn't come installed on your version of windows. you could always compile a VB activeX project and launch a program using the "shell" function. in your ASP you would need to call createObject("mydll.myclass") to get an instance of the vb activeX component ie. dim x Set x = createObject("mydll.myclass") call x.launch("format A:") where launch is a method of the VB class you have made which looks something like Class myclass function launch(param as string) launch = shell(param) End function End Class
__________________
-- ngibsonau |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > How to call another prog with ASP? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|