Experts Exchange connects you with the people and services you need so you can get back to work.
for /f "tokens=*" %%F in ('dir /s /b /a-d "%BaseDir%"') do echo %%~zI,"%%~I"
Open in new window
The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.
One of a set of tools we're offering as a way of saying thank you for being a part of the community.
dir /s /b /a-d "%BaseDir%
@for /r "D:\MainFolder" %a in (*) do @echo %~dpa %~nxa %~za
for /r "D:\MainFolder" %%a in (*) do (
echo !dp:~0,-1! %%~nxa %%~za
for /f "tokens=*" %%F in ('dir /s /b /a-d "%BaseDir%"') do echo %%~zF,"%%~F"
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
Must be at least 4 characters long.
Join and Comment
Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.