windows - Get current folder name by a DOS command? - Super User
Is it possible to get the current folder name (not current directory path) by using a DOS command? If so, how? The closest I got was this but it doesn't do it: for /f "delims=\" %%a in ("%CD%") do set CURR=%%a echo.DIR: %CURR% note: the above attempt ...