Results 1 to 4 of 4

Thread: Can We check the exit command in the batch file

  1. #1
    Join Date
    Dec 2008
    Posts
    71

    Can We check the exit command in the batch file

    More often i'm using one batch file which display many things in it and at the end it shows me exit command.

    Can anyone tell me how can i check whether that exit command is called or not?

  2. #2
    Join Date
    Dec 2008
    Posts
    71

    Re: Can We check the exit command inthe batch file.

    Welcome to Our Windows Forum.

    I would suggest you to follow the following code just before the exit command:-

    e.g. CODE


    Code:
    echo "script successfully ended at exit point" > script.log
    exit

  3. #3
    Join Date
    Dec 2008
    Posts
    84

    Re: Can We check the exit command inthe batch file.

    I think it may be due to the CMD window that closes the window.

  4. #4
    Join Date
    Dec 2008
    Posts
    71

    Re: Can We check the exit command inthe batch file.

    Quote Originally Posted by Azzan View Post
    I think it may be due to the CMD window that closes the window.
    I think it was due to the background task that was running. It would be shown as invisible. Any way in this the OP would be disappear without checking for answers any further.

Similar Threads

  1. How to work with if command and batch file
    By kolton in forum Operating Systems
    Replies: 5
    Last Post: 01-12-2010, 12:09 AM
  2. Batch file to check directory
    By Trini Alvarado in forum Software Development
    Replies: 5
    Last Post: 01-04-2010, 11:00 AM
  3. How to exit a Windows MS-DOS window through a batch file.
    By Juaquine in forum Operating Systems
    Replies: 4
    Last Post: 27-03-2010, 05:31 PM
  4. stringtokenizer in batch file / dos command
    By sayeed in forum Software Development
    Replies: 2
    Last Post: 14-10-2009, 01:26 PM
  5. Exit code from a batch file?
    By Bhairav in forum Operating Systems
    Replies: 3
    Last Post: 17-02-2009, 05:38 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,656,294.16309 seconds with 16 queries