When I run
asadmin start-domain it launches glassfish in a new command prompt window. I want to launch it from the same window I launch the command from. The idea is I want to launch GF3 from a Console2 tab and leave it running there rather than having multiple GF cmd windows.
To start a console app in the same cmd window as the batch file you can use
Which will run the console app and then return to the batch file, without creating a new window.
You can also start it off in it's own thread so to speak, and also in the same window