IIS Server - running of a .exe file

This is Interesting: Free IT Magazines  
Home > Archive > IIS Server > January 2004 > running of a .exe file





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author running of a .exe file
=?Utf-8?B?c3VyeWE=?=

2004-01-29, 2:36 am

Dear Sir,

I am working on an asp application. I want to run a .exe file using WScript.shell. This is what i did.
1. I created an object WShShell for Wscript.shell
2. Then, i made use of wShShell.Run to run the .exe file
3. The .exe file is not getting executed.
4. In Task Manager, I am able to see the .exe process starting but the process is not stopping.

The code is as follows :

WShShell = Server.CreateObject( "WScript.Shell")
retCode = WShShell.Run ( " C:\Inetpub\wwwroot\CBSHeightPrint.exe",2,true)

Some help on this would be cool.

Regards,
dash.


Ali AYEN

2004-01-29, 2:36 am

Not sure but you can try:

retCode = WShShell.Run ("C:\Inetpub\wwwroot\CBSHeightPrint.exe", 2, false)


--

--------------------------------------------------------------------------------

Ali AYEN
Teknik Destek - NiobeWEB Hosting
aliayen@niobeweb.net - www.niobeweb.net
Gaziosmanpasa Blv. Sureyya Reyent Ishani
No.507 Cankaya / IZMIR
Tel : 0.232.441 0678
Fax : 0.232.441 0893
"surya" <anonymous@discussions.microsoft.com> wrote in message news:A3B0BEF8-1522-4C85-940F-F2873DFCF199@microsoft.com...
Dear Sir,

I am working on an asp application. I want to run a .exe file using WScript.shell. This is what i did.
1. I created an object WShShell for Wscript.shell
2. Then, i made use of wShShell.Run to run the .exe file
3. The .exe file is not getting executed.
4. In Task Manager, I am able to see the .exe process starting but the process is not stopping.

The code is as follows :

WShShell = Server.CreateObject( "WScript.Shell")
retCode = WShShell.Run ( " C:\Inetpub\wwwroot\CBSHeightPrint.exe",2,true)

Some help on this would be cool.

Regards,
dash.


David Wang [Msft]

2004-01-30, 12:35 am

If the process is not stopping... then you need to troubleshoot why it's not
stopping. Maybe it is waiting for something else to happen. Maybe its
actions take a long time. Maybe it pops up a dialog box waiting for a user
to interact with it, and since this is a Service on a Server that should be
non-interactive, the dialog box will never be visible to be clicked and thus
never end.

I suggest running that executable on the commandline and see if it runs to
completion. Then, run it as the same authenticated identity you are using
to run the ASP page.

--
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"surya" <anonymous@discussions.microsoft.com> wrote in message
news:A3B0BEF8-1522-4C85-940F-F2873DFCF199@microsoft.com...
Dear Sir,

I am working on an asp application. I want to run a .exe file using
WScript.shell. This is what i did.
1. I created an object WShShell for Wscript.shell
2. Then, i made use of wShShell.Run to run the .exe file
3. The .exe file is not getting executed.
4. In Task Manager, I am able to see the .exe process starting
but the process is not stopping.

The code is as follows :

WShShell = Server.CreateObject( "WScript.Shell")
retCode = WShShell.Run ( "
C:\Inetpub\wwwroot\CBSHeightPrint.exe",2,true)

Some help on this would be cool.

Regards,
dash.



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com