Executing Application within ASP Code 
Author Message
 Executing Application within ASP Code

How do I to execute an application that reside in the server location from
an ASP code


Fri, 07 Mar 2003 14:32:07 GMT  
 Executing Application within ASP Code

Try This

Set WshShell = Server.CreateObject("WScript.Shell")
WshShell.Run("application_Name_with_Path")
set WshShell = nothing

Sm


Quote:
> How do I to execute an application that reside in the server location from
> an ASP code



Fri, 07 Mar 2003 03:00:00 GMT  
 Executing Application within ASP Code

It doesn't make any sense to execute interactive user GUI applications via
ASP on the server side where there is no interactive user.  As you've
discovered, they don't even execute on the visible desktop...

--
Michael Harris
Microsoft.MVP.Scripting
--


Quote:
> Yup, it's look okay, but I can't make the apps to be "visible" on the
screen
> !
> What I get, it's only running at the background.

> where I test with the Notepad.exe


> >Try This

> >Set WshShell = Server.CreateObject("WScript.Shell")
> >WshShell.Run("application_Name_with_Path")
> >set WshShell = nothing

> >Sm



> >> How do I to execute an application that reside in the server location
> from
> >> an ASP code



Fri, 07 Mar 2003 03:00:00 GMT  
 Executing Application within ASP Code

Yup, it's look okay, but I can't make the apps to be "visible" on the screen
!
What I get, it's only running at the background.

where I test with the Notepad.exe

Quote:

>Try This

>Set WshShell = Server.CreateObject("WScript.Shell")
>WshShell.Run("application_Name_with_Path")
>set WshShell = nothing

>Sm



>> How do I to execute an application that reside in the server location
from
>> an ASP code



Sat, 08 Mar 2003 09:41:10 GMT  
 Executing Application within ASP Code
Yes it does make sense, because those same programs can be run off the
command line, such as "sndrec32.exe -play -close c:\test\testwave.wav"

This would allow alerting the administrator to a client-side user input,
error, etc.  In my case, I'd like to shell out a specific dos-based compiled
program or .BAT.  I'm getting the same problem.  It seems to be "there" but
not there.

-Travis

DMAS

Quote:

> It doesn't make any sense to execute interactive user GUI applications via
> ASP on the server side where there is no interactive user.  As you've
> discovered, they don't even execute on the visible desktop...

> --
> Michael Harris
> Microsoft.MVP.Scripting
> --



> > Yup, it's look okay, but I can't make the apps to be "visible" on the
> screen
> > !
> > What I get, it's only running at the background.

> > where I test with the Notepad.exe


> > >Try This

> > >Set WshShell = Server.CreateObject("WScript.Shell")
> > >WshShell.Run("application_Name_with_Path")
> > >set WshShell = nothing

> > >Sm



> > >> How do I to execute an application that reside in the server location
> > from
> > >> an ASP code



Fri, 14 Mar 2003 03:00:00 GMT  
 Executing Application within ASP Code
"Deyeme" wrote ...

Quote:
> Yes it does make sense, because those same programs can be run off the
> command line, such as "sndrec32.exe -play -close c:\test\testwave.wav"

Yes, but then they're running as a "normal" user with a visible desktop -
since any code which executes from ASP runs in the context of the
IUSR_MACHINE user, without an interactive desktop, running any code which
requires interactivity or a GUI on the server-side *doesn't* make sense...

Quote:
> This would allow alerting the administrator to a client-side user input,
> error, etc.  In my case, I'd like to shell out a specific dos-based
compiled
> program or .BAT.  I'm getting the same problem.  It seems to be "there"
but
> not there.

There's a vast difference between running a batch file, WSH script, etc.
that performs tasks such as file maintainance with no visible output on the
server-side and trying to run something like Notepad or Sound Recorder - in
any case, most administrators don't sit and watch the desktops of their web
servers waiting for a response to client-side input; a) they have far better
things to do and b) that's not how client-server technology works (and as
noted above, and by MH previously, it's non-sensical in this context)

hth hand
Adam



Fri, 14 Mar 2003 03:00:00 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Executing an Application from within an Application

2. execute dos command from within asp

3. Executing a problem within an VB Application

4. Executing an EXE from within a VB application

5. How to execute a batch file within a VB 5 application

6. Vba code which can execute FTP script from within the Access 97 module

7. Executing Excel-VBA code within a Access-database

8. Executing Access Query within VB Code

9. Utilizing NT permissions within an ASP application

10. trouble with executing application in ASP

11. touble with executing application in ASP

12. application executed from ASP script - no window

 

 
Powered by phpBB® Forum Software