Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: ASP Equivalent to SSI #exec


Message #1 by Paul R Stearns <pauls@c...> on Wed, 17 Jul 2002 10:49:32 -0400
I have a need to execute a Visual FoxPro program (.exe) which creates a PDF
file. One method that I can think of is to use a .shtm file and a <!-- #exec
cmd="command.exe" -->. Is there a way which will work on IIS 4 from within asp
allowing me to pass parameters on the command line?

For example at a command prompt I would type;

prgname 0491 0 3

and the program would retrieve the 0491, 0 and 3 as parameters.

Paul

Message #2 by "Ken Schaefer" <ken@a...> on Thu, 18 Jul 2002 11:31:21 +1000
a) You can use WSH in your ASP page to invoke a command prompt:
http://msdn.microsoft.com/library/default.asp?url=/nhp/Default.asp?contentid
=28001169

b) You could just use the /scripts folder (or any other folder that is
marked with IIS Execute permissions), and call the program directly from the
URL.

Cheers
Ken

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Paul R Stearns" <pauls@c...>
Subject: [asp_web_howto] ASP Equivalent to SSI #exec


: I have a need to execute a Visual FoxPro program (.exe) which creates a
PDF
: file. One method that I can think of is to use a .shtm file and a <!--
#exec
: cmd="command.exe" -->. Is there a way which will work on IIS 4 from within
asp
: allowing me to pass parameters on the command line?
:
: For example at a command prompt I would type;
:
: prgname 0491 0 3
:
: and the program would retrieve the 0491, 0 and 3 as parameters.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


  Return to Index