+ Post New Thread
Results 1 to 4 of 4
How do you do....it? Thread, View the exit code of a .exe in Technical; Hi, I want to run a .exe in the command line. How do i view the exit code of this ...
  1. #1

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,962
    Thank Post
    886
    Thanked 1,710 Times in 1,478 Posts
    Blog Entries
    12
    Rep Power
    449

    View the exit code of a .exe

    Hi,

    I want to run a .exe in the command line. How do i view the exit code of this please?

    Thanks

  2. #2


    Join Date
    Feb 2007
    Location
    51.403651, -0.515458
    Posts
    8,912
    Thank Post
    226
    Thanked 2,676 Times in 1,973 Posts
    Rep Power
    787
    Code:
    echo Exit Code is %errorlevel%

  3. Thanks to Arthur from:

    FN-GM (6th September 2012)

  4. #3
    Ergo's Avatar
    Join Date
    Sep 2012
    Location
    Nottingham
    Posts
    111
    Thank Post
    16
    Thanked 26 Times in 25 Posts
    Rep Power
    9
    IF you want to do this once, simply running DebugView should show you. Alternatively if you are calling the .exe from a batch file you can use the code below as the next line in the batch file.

    echo Exit Code is %errorlevel%

    Regards,

    David Irwin

  5. Thanks to Ergo from:

    FN-GM (6th September 2012)

  6. #4

    FN-GM's Avatar
    Join Date
    Jun 2007
    Location
    UK
    Posts
    15,962
    Thank Post
    886
    Thanked 1,710 Times in 1,478 Posts
    Blog Entries
    12
    Rep Power
    449
    Thanks Guys

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 2
    Last Post: 9th December 2010, 09:01 AM
  2. Replies: 3
    Last Post: 2nd July 2010, 10:46 PM
  3. View the full MOT history of your car
    By tech_guy in forum General Chat
    Replies: 1
    Last Post: 29th October 2009, 07:11 PM
  4. Replies: 0
    Last Post: 4th July 2009, 01:13 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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