Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read SiteMap

Tags:

Sponsored Links



Can We check the exit command in the batch file

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 30-12-2008
Dhruv's Avatar
Member
 
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?
Reply With Quote
  #2  
Old 30-12-2008
Asuman's Avatar
Member
 
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
Reply With Quote
  #3  
Old 30-12-2008
Azzan's Avatar
Member
 
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.
Reply With Quote
  #4  
Old 30-12-2008
Asuman's Avatar
Member
 
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.
Reply With Quote
Reply

  TechArena Community > Software > Software Development


Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 03:54 AM.