I know that the 'title' command in a cmd or bat file will change the
command prompt window to the title you specify.

Is there a corresponding way to determine the current title of the
window within a script?

You know something like (psuedocode, not real cmd):

if get_title == "Command Prompt"
goto comprompt:
if get_title == "Admin Server"
goto server:

Thanks -