Is a single exit at the bottom of a batch file redundant? -


i'm working on windows .bat files have been around long time. on last line, have single exit statement without arguments.

this appears redundant me. there valid reason presence?

an exit withoput /b option exit batch file and cmd.exe instance.

when start batch file starting explorer, there not difference,
when start batch file cmd window, window closes when batch file executes exit.

normally should avoid this, it's annoying behaviour, can't build batch file calling type of files, exit cancels calling batch file.

call myannoyingbatch.bat echo won't displayed anymore 

i know 1 reason using exit @ end of script.
when build drag&drop script should bullet proof , need exit avoid problems filenames cat&dog.png


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -