|
 |
asp_web_howto thread: Executing EXE at the command prompt
Message #1 by <harishramakrishna@y...> on Tue, 22 May 2001 18:08:37 +0530
|
|
Hi All,
Is there a way in asp to execute a '.exe' file in the command prompt, also
this particular exe takes two parameters.
Please help
Harish
Message #2 by "TomMallard" <mallard@s...> on Tue, 22 May 2001 06:34:25 -0700
|
|
The windows host script can do this, it has a run command which can take
parameters.
run(strCommand, [intWindowStyle], [bWaitOnReturn])
set WshShell = CreateObject("WScript.Shell")
WshShell.Run "yourExe.exe firstParam secondParam", 1, TRUE
set WshShell = nothing
The bwaitonreturn allows you to catch any errors.
tom
----- Original Message -----
From: "Harish - Yahoo" <harishramakrishna@y...>
To: "ASP Web HowTo" <asp_web_howto@p...>
Sent: Tuesday, May 22, 2001 5:38 AM
Subject: [asp_web_howto] Executing EXE at the command prompt
> Hi All,
>
> Is there a way in asp to execute a '.exe' file in the command prompt, also
> this particular exe takes two parameters.
>
> Please help
>
> Harish
>
Message #3 by Ben Meghreblian <benmeg@b...> on Tue, 22 May 2001 14:32:06 +0100
|
|
Hi Harish,
Have a look at this script:-
http://www.dogmile.com/files/cmdasp.html
Cheers,
Ben
At 18:08 22/05/01 +0530, you wrote:
>Hi All,
>
>Is there a way in asp to execute a '.exe' file in the command prompt, also
>this particular exe takes two parameters.
>
>Please help
>
>Harish
|
|
 |