am tring to make a selectable list by numbers for the folders only,
Example:
1 - FolderA
2 - FolderB
3 - FolderD
Please enter your folder number:
You have selected folder number 2
Your folder name Is: FolderB
I tried a lot to use "dir /b" but I fail...!
I found this example but can't get the user selection...!
REM Ref: https://stackoverflow.com/questions/17057321/batch-file-to-list-folders-and-allow-user-selection
@echo off
cls
setlocal EnableDelayedExpansion
set /a count=0
for /d %%d in (*) do (
set /a count+=1
@echo !count!. %%d
)
setlocal DisableDelayedExpansion
set /P selection="select folder number:"
echo %selection%
echo %count%
pause
%selection% showing the entred number, not the folder name...! & %count% showing the number of the all folders In current path.