Tech Support Forum banner
Status
Not open for further replies.
1 - 4 of 4 Posts

·
Registered
Joined
·
63 Posts
Discussion Starter · #1 ·
Hello

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:

Subsubfolder\[blabla]

In each of line (no matter how many hundreds or thousands of lines) only those two parts.

Thank you... :wave:
 

·
Registered
Joined
·
63 Posts
Discussion Starter · #4 ·
Command Prompt names of files have to be no more then 8 characters plus the extension or it will be truncated.

huh? What do you mean? I was talking about folder names and not names of files... I would like to get in text (.doc) file only two parts of each line. Which two parts I mean is shown in my first post.
 
1 - 4 of 4 Posts
Status
Not open for further replies.
Top