dir /ad /b /on /s>C:\dirlist.txt
Start Notepad.exe C:\dirlist.txt
===================
That will do the job, but it might be a bit more
useful to place such similar file in the
Windows folder for universal availability.
Here is a quick and dirty directory/folder list-out
from the olden days of DOS. Using Notepad, just
use the two main lines below and save it to a
file called DIRLIST.BAT and place it in your Windows
folder.
Thereafter, you can enter on the RUN line
DIRLIST for any Folder or Sub-Folder you desire,
regardless of what folder or drive you happen to
be in currently.
i.e. DIRLIST C:\WINDOWS\SYSTEM32
which will generate a loooong list of everything
in that SYSTEM32 folder and show it to you with
Notepad. That dirlist.txt will remain in SYSTEM32
folder until you delete it, or overwrite it again.
====don't use this line========
dir /s %1 > %1\dirlist.txt
Notepad.exe %1\dirlist.txt
====don't use this line========