I faced a problem trying to implement a .bat file and I didn't find an answer. I try to display all folder names without the system path.
I've tried something like that but it doesn't work.
@echo off
set back=%cd%
for /d %%I in (C:\test\test*) do (
cd %%I 2>&1 >nul
echo %%~nxI:~10,5
)
cd %back% 2>&1 >nul
Do you have a solution please ? :-)