Using system diagnostics process

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JnrJnr
    New Member
    • Oct 2009
    • 88

    Using system diagnostics process

    Hello. I am trying to open a .EXE file with the
    Code:
    System.Diagnostics.Process.Start(some file path .exe)
    command. It works for most programs and apps but for others programs I get a warning message box
    "WIN_IMPROPER_Q UIT_BODY" with Yes,No,Cancel option. When I click Yes or No I get an error "Error during initialization: some blah blah file not found".

    When I refer to the shortcut of the program Im trying to run it actually works and opens the app/program but I cant seem to open it when refering to the file straight from its installed directory. I get the impression that when running the file from the programs directory i need to include some other file like a .dll or something.

    Can anyone give a tip or help me solve this problem?
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    You may need to provide a WorkingDirector y for the object or even some arguments.
    Take a look at ProcessStartInf o and see if you need anything available there.

    EDIT: According to this post: http://forum.i3d.net/technische-hulp...quit_body.html the working directory is what was needed

    Comment

    • JnrJnr
      New Member
      • Oct 2009
      • 88

      #3
      Hi and thanx Plater
      I'l take a look and see what I can do.

      Comment

      Working...