batch file to list folders within a folder to one level

后端 未结 3 932
轮回少年
轮回少年 2021-02-04 01:57

I have searched and searched to no avail so apologies if the answer does exist.

I am not very good with batch files so please keep this in mind.

All I am after i

3条回答
  •  名媛妹妹
    2021-02-04 02:43

    print all folders name where batch script file is kept

    for /d %%d in (*.*) do (
        set test=%%d
        echo !test!
    )
    pause
    

提交回复
热议问题