TO run an Application from Batch file

V

viki

Hi,
I want to run the batch file from the asp.net
web(intranet)application. The batch files works fine if it has some
copy or del command, eventhough i could not see the command window.
But if the batch file has some application for e.g., Notepad,it seems
to open the notepad as i could see it running in the task manager, but
the application hangs. But if i give exit after some time, the
application exits but the process for notepad still running in the
task manager and does nothing.

I could run the same code in the windows vb.net application, it works
fine. Do i need to set any additional privileges to the user account
to run the application in the batch file.

To be more clear, i am using Integrated authentication for windows and
impersonation identity= true . Could anyone please share with me your
ideas if u have done anything similar of this kind...

Thanks in advance,
Viki
 
P

Paul Clement

On 24 Oct 2004 09:34:36 -0700, (e-mail address removed) (viki) wrote:

¤ Hi,
¤ I want to run the batch file from the asp.net
¤ web(intranet)application. The batch files works fine if it has some
¤ copy or del command, eventhough i could not see the command window.
¤ But if the batch file has some application for e.g., Notepad,it seems
¤ to open the notepad as i could see it running in the task manager, but
¤ the application hangs. But if i give exit after some time, the
¤ application exits but the process for notepad still running in the
¤ task manager and does nothing.
¤
¤ I could run the same code in the windows vb.net application, it works
¤ fine. Do i need to set any additional privileges to the user account
¤ to run the application in the batch file.
¤
¤ To be more clear, i am using Integrated authentication for windows and
¤ impersonation identity= true . Could anyone please share with me your
¤ ideas if u have done anything similar of this kind...
¤

You don't typically run a program with a user interface from an ASP or ASP.NET server side
application. The application runs on the server and you cannot interact with it from the browser
side client.

You may want to check out the following thread:

http://makeashorterlink.com/?J15E23E99


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 
V

viki

Hi All,
Now i was able to run an application on the server from the batch file
, but i want to run the application in the client not on the server.
Does any body has undergone such thing, if so could u please help me
with the code..

Thanks,
Viki
 
P

Paul Clement

On 27 Oct 2004 04:55:51 -0700, (e-mail address removed) (viki) wrote:

¤ Hi All,
¤ Now i was able to run an application on the server from the batch file
¤ , but i want to run the application in the client not on the server.
¤ Does any body has undergone such thing, if so could u please help me
¤ with the code..

See the following:

INFO: Executing Files by Hyperlink and the File Download Dialog Box
http://support.microsoft.com/defaul...port/kb/articles/Q232/0/77.ASP&NoWebContent=1


Paul ~~~ (e-mail address removed)
Microsoft MVP (Visual Basic)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top