hi
just tried it on system32 folder ... took less than a second to create the txt file
the command is
dir /n /o:gn >root.txt
dir = directory listing
/n = long list (full file names)
/o:og = arrange output by putting directories first and sort on name.
>root.txt = sends output to a text file called (in this case) root.txt.
you don't need to use a .bat file to run it ... just open a command window in the folder you're interested in
the easiest way is
in XP right click the folder | use command prompt here
(you'll need to download and install Open Command Window Here
http://www.microsoft.com/windowsxp/downloads/p owertoys/xppowertoys.mspx)
in vista - hold down shift and right click the folder | open command window here
open a command window type dir /? to see all options
once you have the file ... open it ... delete any stuff you don't need
then select all | copy
switch to the spreadsheet and paste
then use data | text to columns (fixed width - if you use space delimited it will split filenames)
however ... if you have files lager than 9,999,999 bits the first digit will spill into the previous column
you'll need to scroll down yo see if everything is clean
alternatively add the /-c switch to remove commas
dir /-c /n /o:gn >root.txt
to import directly to word
as above then just paste the text into word (change the font to a fixed pitch - courrier new is as good as any
and it will look exactly the same as the screen
you could actually copy the text directly from the command screen using copy / paste
(top left click the C:\> icon for the edit op