Get current folder name instead of current path in windows batch file [duplicate]
Solution 1:
There really isn't an easy way to do it. This works in a .bat file:
for %%* in (.) do @echo %%~n*
There really isn't an easy way to do it. This works in a .bat file:
for %%* in (.) do @echo %%~n*