Last active
December 3, 2018 08:32
-
-
Save jueti/34a6a650a6ac9f634c49a13529d4d9f9 to your computer and use it in GitHub Desktop.
[bat get parent folder name] #bat #cmd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set "cd_=%cd%" | |
:loop | |
set "cd_=%cd_:*\=%" | |
set "cd_tmp=%cd_:\=%" | |
if not "%cd_tmp%"=="%cd_%" goto loop | |
echo "cd_" | |
echo; | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment