Sets the cmd window title to the current folder name.
@echo off
set MYDIR=%cd%
set MYDIR1=%MYDIR:~0%
for %%f in (%MYDIR1%) do set MYDIR=%%~nxf
title %MYDIR%
Sets the cmd window title to the current folder name.
@echo off
set MYDIR=%cd%
set MYDIR1=%MYDIR:~0%
for %%f in (%MYDIR1%) do set MYDIR=%%~nxf
title %MYDIR%