Skip to content

Instantly share code, notes, and snippets.

@alapolloni
Last active December 19, 2015 15:19
Show Gist options
  • Select an option

  • Save alapolloni/5975235 to your computer and use it in GitHub Desktop.

Select an option

Save alapolloni/5975235 to your computer and use it in GitHub Desktop.
Change the title of the console to the current directory Windows Command cmd.exe
Called by this:
doskey cd=cd $* ^&^& @titledir.cmd
File: titledir.com
@echo off
REM the @ turns off the echo for the 1st line and the echo off for the rest of the bat
REM this cmd is paired with doskey cd=cd $* ^&^& @titledir.cmd
for /f "delims=\" %%a in ("%cd%") do title %%~nxa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment