How to get current 'prompt' string?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
Apr 7, 2010
29
0
#1
My batch script needs to prepend a string to the current prompt string ... to identify the current virtual environment, similar to activating a python virtual environment.

CMD.EXE sets the PROMPT environment variable; TCC does not.

Is there a way to get the current prompt string?