Re: TO run an Application from Batch file

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 10/26/04


Date: Tue, 26 Oct 2004 11:44:38 -0500

On 24 Oct 2004 09:34:36 -0700, freetorn2002@yahoo.ca (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 ~~~ pclement@ameritech.net
Microsoft MVP (Visual Basic)



Relevant Pages

  • Re: Fix for: Server Application Unavailable Error after Applying Security Update for IE
    ... > We have identified an issue with the recent MS03-32 Security Update for> Internet Explorer security patch and ASP.NET V1.0 running on Windows XP. ... all requests to ASP.NET applications running on the local IIS 5.1 web> server result in an error message saying "Server Application Unavailable". ... In the meantime,> you can execute the following batch file as a workaround for the issue. ... > Stops the IIS and ASP.NET state services> Deletes and recreates the ASPNET account with a known temporary password> Uses the Windows runas command to launch an executable that creates an ASPNET ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Rebooting 2003 server automatically?
    ... I'm not averse to Microsoft-bashing myself, but rebooting a server just ... because it's Windows seems a bit harsh and unwarranted. ... encounter if you don't reboot? ... Double-clicking a local batch file on a NT5.2 ...
    (microsoft.public.win2000.general)
  • Windows 2000 client cant map network drive on windows server 2003
    ... I have a batch file like the following: ... for all clients (windows 2000 pro and windows xp pro), ... for windows 2000 pro client, when logon to local computer, the batch file ... but have problem to map a share on windows server 2003. ...
    (microsoft.public.windows.server.networking)
  • Server 2003 and UNC paths
    ... Running Windows Server 2003, we have a batch file executed by a user ... other than the server user account. ... like a UNC path aren't "redirected drives", ...
    (microsoft.public.windows.server.networking)
  • Re: Fix for: Server Application Unavailable Error after Applying Security Update for IE
    ... I've run the batch file, and now the login is failing for aspnet. ... > Internet Explorer security patch and ASP.NET V1.0 running on Windows XP. ... > Deletes and recreates the ASPNET account with a known temporary password ... This creates a new random password for the account ...
    (microsoft.public.dotnet.framework.aspnet.security)