11-24-2009, 05:31 PM
Join Date: May 2009
One question about DIR command in CMD for creating filename.doc.
I am using the following command:
dir /ad /s /b > filename.doc
Could I get as the result (text inside file filename.doc) only two parts of each line? What I mean is this:
I have the line that looks like:
C:\Main Folder\Subfolder\Subsubfolder\[blabla] example_of_folder_name
I would like to have this only:
In each of line (no matter how many hundreds or thousands of lines) only those two parts.