Go Back   Tech Support Forum > Microsoft Support > Windows XP Support

User Tag List

Command Prompt (CMD) DIR command

This is a discussion on Command Prompt (CMD) DIR command within the Windows XP Support forums, part of the Tech Support Forum category. Hello One question about DIR command in CMD for creating filename.doc. I am using the following command: dir /ad /s


Closed Thread
 
Thread Tools Search this Thread
Old 11-24-2009, 05:31 PM   #1
Registered Member
 
Join Date: May 2009
Posts: 63
OS: XP



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...
ToiletDiver is offline  
Sponsored Links
Advertisement
 
Old 11-25-2009, 04:28 PM   #2
Registered Member
 
Join Date: May 2009
Posts: 63
OS: XP



hello?
ToiletDiver is offline  
Old 11-25-2009, 04:33 PM   #3
Troubled
 
Join Date: Apr 2009
Posts: 2,854
OS:



Command Prompt names of files have to be no more then 8 characters plus the extension or it will be truncated.
deleted010511 is offline  
Sponsored Links
Advertisement
 
Old 11-26-2009, 03:23 AM   #4
Registered Member
 
Join Date: May 2009
Posts: 63
OS: XP



Quote:
Originally Posted by spike2me View Post
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.
ToiletDiver is offline  
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is on
Smilies are on
[IMG] code is on
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Post a Question


» Site Navigation
 > FAQ
  > 10.0.0.2
Powered by vBadvanced CMPS v3.2.3


All times are GMT -7. The time now is 03:11 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.1.0 (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright 2001 - 2018, Tech Support Forum

Windows 10 - Windows 7 - Windows XP - Windows Vista - Trojan Removal - Spyware Removal - Virus Removal - Networking - Security - Top Web Hosts