Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How can I identify the application fully executed?

How can I identify the application fully executed?

Scheduled Pinned Locked Moved ASP.NET
csharpquestionasp-netvisual-studiodebugging
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BalasubramanianK
    wrote on last edited by
    #1

    Dear All, I am using Asp.Net with C# in windows application (VS 2005). I create one test.bat file, which is executed by my application. I am using "System.Diagnostics.Process.Start" to execute test.bat. How can I get the result, that the bat file has been executed and closed. Because, test.bat file is taking few seconds to run and it creates a table with data and gets closed. My application is gets the data from the table, which is done by test.bat and proceed further. I can have good result, if I debug the application. I can not have a good result at run mode. I want to proceed my application, after executed the test.bat file. How can I identify that test.bat file has been executed fully?. What I need to do?. I have to handle threading? Is there any other way? Thanks in adv.

    Balasubramanian K.

    S 1 Reply Last reply
    0
    • B BalasubramanianK

      Dear All, I am using Asp.Net with C# in windows application (VS 2005). I create one test.bat file, which is executed by my application. I am using "System.Diagnostics.Process.Start" to execute test.bat. How can I get the result, that the bat file has been executed and closed. Because, test.bat file is taking few seconds to run and it creates a table with data and gets closed. My application is gets the data from the table, which is done by test.bat and proceed further. I can have good result, if I debug the application. I can not have a good result at run mode. I want to proceed my application, after executed the test.bat file. How can I identify that test.bat file has been executed fully?. What I need to do?. I have to handle threading? Is there any other way? Thanks in adv.

      Balasubramanian K.

      S Offline
      S Offline
      SeMartens
      wrote on last edited by
      #2

      Hi, the Process-class itself contains a method WaitForExit. Using this method the calling application will wait for the process to be finished. To get the output of your process you can redirect the stream by utilizing the StandardOutput-property. Take a look into msdn to get further details: http://msdn.microsoft.com/de-de/library/system.diagnostics.process.aspx[^] Regards Sebastian

      It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

      B 1 Reply Last reply
      0
      • S SeMartens

        Hi, the Process-class itself contains a method WaitForExit. Using this method the calling application will wait for the process to be finished. To get the output of your process you can redirect the stream by utilizing the StandardOutput-property. Take a look into msdn to get further details: http://msdn.microsoft.com/de-de/library/system.diagnostics.process.aspx[^] Regards Sebastian

        It's not a bug, it's a feature! Check out my CodeProject article Permission-by-aspect. Me in Softwareland.

        B Offline
        B Offline
        BalasubramanianK
        wrote on last edited by
        #3

        Yes. It is working fine now. Thanks

        Balasubramanian K.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups