January 28th, 2003, 11:50 AM
How to call another prog with ASP?
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?
January 28th, 2003, 06:48 PM
might be useful, i have no idea about perl though...
February 12th, 2003, 02:05 AM
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
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
function launch(param as string)
launch = shell(param)