TO run an Application from Batch file

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default TO run an Application from Batch file

    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
    viki Guest

  2. Similar Questions and Discussions

    1. scheduled batch file does not run
      I am running a batch file that basically uses xcopy to copy files to a network share. I have scheduled it to run under the domain administrator...
    2. Cant run batch file from .asp under iis6
      what's in the BAT? -- ---------------------------------------------------------- Curt Christianson (Software_AT_Darkfalz.Com) Owner/Lead...
    3. How to open a batch file (didn't now work)
      I trying to open a batch file. I tried the following syntax: System.Diagnostics.Process.start("c:\mybatchfile.bat") but ,nothing happen any...
    4. How to run a batch file.
      I want to run a batch file located on my c drive file: C:\mybatchfile.bat sincerely yours Mike John
    5. Login batch file
      We run a NT4 server with our workstations running Win98. We have a batch file that runs a log on script when each user logs into the network. The...
  3. #2

    Default Re: TO run an Application from Batch file

    [email]freetorn2002@yahoo.ca[/email] (viki) wrote in message news:<deb17ac9.0410240834.156f4db9@posting.google. com>...
    Nobody is there to help me....
    Viki
    viki Guest

  4. #3

    Default Re: TO run an Application from Batch file

    On 24 Oct 2004 09:34:36 -0700, [email]freetorn2002@yahoo.ca[/email] (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:

    [url]http://makeashorterlink.com/?J15E23E99[/url]


    Paul ~~~ [email]pclement@ameritech.net[/email]
    Microsoft MVP (Visual Basic)
    Paul Clement Guest

  5. #4

    Default Re: TO run an Application from Batch file

    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
    viki Guest

  6. #5

    Default Re: TO run an Application from Batch file

    On 27 Oct 2004 04:55:51 -0700, [email]freetorn2002@yahoo.ca[/email] (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
    [url]http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q232/0/77.ASP&NoWebContent=1[/url]


    Paul ~~~ [email]pclement@ameritech.net[/email]
    Microsoft MVP (Visual Basic)
    Paul Clement Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139