BAT batch command-A demonstration of the function of outputting all the folder names under the current folder

The following function is to output all the folder names under the current folder and connect them with commas.
You need to put the bat file in the specified folder for execution.

@echo off
for /D %%i in (*) do set /p=%%i,<nul
pause

Insert picture description here
Running effect picture:
Insert picture description here
Like the one you like ❤!

Guess you like

Origin blog.csdn.net/qq_38161040/article/details/104900543