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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. System.Diagnosis.process

System.Diagnosis.process

Scheduled Pinned Locked Moved Visual Basic
questionhelp
6 Posts 3 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.
  • S Offline
    S Offline
    Sonia Gupta
    wrote on last edited by
    #1

    I was running an exe . Now my question is , Can i programatically check whether the exe has been executed completely. Does the framework class System.Diagnosis.process has anything to do with the remedy of this problem?

    V D 2 Replies Last reply
    0
    • S Sonia Gupta

      I was running an exe . Now my question is , Can i programatically check whether the exe has been executed completely. Does the framework class System.Diagnosis.process has anything to do with the remedy of this problem?

      V Offline
      V Offline
      Vivek Narayanan
      wrote on last edited by
      #2

      well,you could enclose it in a try ..... catch and get the message of the exception and find out,if there is no exception message,then the file would have been executed 'completely'

      S 1 Reply Last reply
      0
      • V Vivek Narayanan

        well,you could enclose it in a try ..... catch and get the message of the exception and find out,if there is no exception message,then the file would have been executed 'completely'

        S Offline
        S Offline
        Sonia Gupta
        wrote on last edited by
        #3

        is there ant alternative way out ? once the program enters into the catch block.it takes time to complete the execution.thus increases the access time.

        V 1 Reply Last reply
        0
        • S Sonia Gupta

          is there ant alternative way out ? once the program enters into the catch block.it takes time to complete the execution.thus increases the access time.

          V Offline
          V Offline
          Vivek Narayanan
          wrote on last edited by
          #4

          if you use a generic exception such as "Exception" it will take a lot of time,to reduce that time you have to choose a more specific exception.The more generic your exception,the more longer the processing time.So its a compromise between Accuracy and Speed.

          S 1 Reply Last reply
          0
          • V Vivek Narayanan

            if you use a generic exception such as "Exception" it will take a lot of time,to reduce that time you have to choose a more specific exception.The more generic your exception,the more longer the processing time.So its a compromise between Accuracy and Speed.

            S Offline
            S Offline
            Sonia Gupta
            wrote on last edited by
            #5

            i actually do not know how to check whether the particular exe has been executed completely.

            1 Reply Last reply
            0
            • S Sonia Gupta

              I was running an exe . Now my question is , Can i programatically check whether the exe has been executed completely. Does the framework class System.Diagnosis.process has anything to do with the remedy of this problem?

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              What do you mean by "execute completely"?? Are you asking if the child process terminates? Are you looking for an exit code? A file waiting to be written?? What?

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              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