Command Line\ Dos GURUS I need Help

Format _C:

2[H]4U
Joined
Jun 12, 2001
Messages
3,885
So I'm geting a new Hard drive for my HTPC and I Watched and Saved all of my TV Shows and Movies to another HDD but is there any way I can save the directory tree (The whole list of Directires and all of the Sub direcories in each folder) To a Text file
Maybe along the lines of some thing like this
Code:
G:\
G:\ Recorded TV Shows\
G:\Recorded TV Shows\Family Guy
G:\Recorded TV Shows\American Dad
But in order and with all of my folder and subfolders Thanks
 
A few methods:

dir /s g:\ > "%userprofile%\Desktop\filelist.txt"

dir /s /b g:\ > "%userprofile%\Desktop\filelist.txt"

dir /s /w g:\ > "%userprofile%\Desktop\filelist.txt"

Each of those should leave a file on your desktop. I recomend the third one.
 
from a dos box:

dir c:\YOURPATH /AD /b /s > "%userprofile%\Desktop\folders.txt"

Explanation

/s includes subdirectories
/b excludes file sizes, dates, etc
/AD includes directories only..
 
Back
Top