SoFunction
Updated on 2025-04-09

cmd dir structure tree display code (list directory files)


@rem This BAT file name must not be "", otherwise the tree command will be effective, I don't know why
@rem Maybe it's because the system directory has "", the system will be confused.
@rem Use "" as the file name but it is OK.
@echo off
rem generates a very beautiful structure tree in the current directory
tree /f >

rem is like the DIR command, but each lower directory file is also listed
DIR /S >

rem lists the directory current directory file in a simple way
DIR /d >