I have a bat file that does a bunch of things and closes the cmd window which is fine when user double clicks the bat file from explorer. But if I run the bat file from a al
It's not only possible, but your desired behavior is the normal behavior of batch file execution, unless you do something 'special':
So I think the question that needs to be answered is what are you doing in the batch file that causes the command window to close when you execute it by the command line?