Setting the window title for a command prompt

Very quick tip in what seems to have become a mini-series (Part 1, Part 2). I often find myself with a number of command windows open and switching between them can be problematic. To address this I use the “title” command to set the window title, and have found that setting the title to match the current directory works well. To achieve this quickly you can use the following command

@title %CD%

And, of course, you can wrap this in a batch file and put it in your path to make it easier to remember and use.

Comments (0)

Skip to main content