Ask Experts Questions for FREE Help !
Ask
    rasha_qissi's Avatar
    rasha_qissi Posts: 15, Reputation: 1
    New Member
     
    #1

    Feb 27, 2009, 11:10 AM
    Subfolders names
    How can I get subfolder name in txt file?:( if u can replay me its so imp
    Thanks a lot :)
    seahwk83's Avatar
    seahwk83 Posts: 3,276, Reputation: 212
    Ultra Member
     
    #2

    Feb 27, 2009, 11:41 AM

    Really don't understand what trying to do
    KISS's Avatar
    KISS Posts: 12,510, Reputation: 839
    Uber Member
     
    #3

    Feb 27, 2009, 11:43 AM

    I thik I know the question you are asking:

    Go to the sub-folder.
    Do a Right-Click Rename.
    Select the name and do a control C (Copy)
    Paste name into txt file.

    You don't rename the file, but you use that mechanism to be able to copy the name.
    seahwk83's Avatar
    seahwk83 Posts: 3,276, Reputation: 212
    Ultra Member
     
    #4

    Feb 27, 2009, 01:27 PM

    If that is what looking to do, right click on the subfolder and click properties

    -When properties box comes up, you will be able to copy the name of the folder and then paste it where you like
    rasha_qissi's Avatar
    rasha_qissi Posts: 15, Reputation: 1
    New Member
     
    #5

    Feb 28, 2009, 11:14 AM

    Ihave 1000 subfolders icant use copy/paste ineed another way for get subfolder name to txt file :(
    KISS's Avatar
    KISS Posts: 12,510, Reputation: 839
    Uber Member
     
    #6

    Feb 28, 2009, 11:57 AM

    I know how to do it, but you won't like it at all.

    Here is an example of just sub-folders from my Windows XP system.

    $ ls -d -1
    Bin
    Cygdrive
    Cygwin.bat
    Cygwin.ico
    Etc
    Home
    Lib
    Proc
    Sbin
    Srv
    Tmp
    Usr
    Var

    Making the command "ls -d -1 > a.out" will put the files in the filename a.out. The -D is just list directories and the -1 is 1 per line.

    Well, it was supposed to list the directories, but it listed all of the files including the directories.

    I installed cygwin which is a linix-like environment that runs under Windows. It's a free package.
    KISS's Avatar
    KISS Posts: 12,510, Reputation: 839
    Uber Member
     
    #7

    Feb 28, 2009, 01:00 PM
    Nonetheless, you can get this list:

    drwxrwx---+ 2 normal Users 0 Sep 6 2006 bin
    dr-xr-xr-x 1 0 0 0 Dec 31 1969 cygdrive
    -rwxr-x---+ 1 normal Users 57 Apr 24 2006 cygwin.bat
    -rwxr-x---+ 1 normal Users 7022 Sep 6 2006 cygwin.ico
    drwxrwx---+ 35 normal Users 0 Sep 7 2006 etc
    drwx------+ 4 normal None 0 Sep 3 2006 home
    drwxrwx---+ 57 normal Users 0 Sep 5 2006 lib
    dr-xr-xr-x 1 normal None 0 Feb 28 14:58 proc
    drwxrwx---+ 2 normal Users 0 Apr 24 2006 sbin
    drwxrwx---+ 3 normal Users 0 Apr 24 2006 srv
    drwxrwxrwt+ 2 normal Users 0 Feb 28 14:58 tmp
    drwxrwx---+ 19 normal Users 0 Sep 5 2006 usr
    drwxrwx---+ 13 normal Users 0 Apr 27 2006 var

    with an "ls -a"

    The d in the first column is directory.
    rasha_qissi's Avatar
    rasha_qissi Posts: 15, Reputation: 1
    New Member
     
    #8

    Feb 28, 2009, 02:44 PM

    Hi KeepItSimpleStupid tahnks a lot 4 your answer but icant understand your seloution can you explain it to me
    KISS's Avatar
    KISS Posts: 12,510, Reputation: 839
    Uber Member
     
    #9

    Feb 28, 2009, 03:12 PM

    This is cygwin

    Documentation

    Not sure if you need the names of just the directories or the files too. In my list cygwin.bat and cygwin.iso are files and not directories.
    KISS's Avatar
    KISS Posts: 12,510, Reputation: 839
    Uber Member
     
    #10

    Feb 28, 2009, 03:18 PM
    Using the cmd prompt, "DIR /AD >filename" can also work. It will give an output such as:

    Directory of C:\Documents and Settings\normal

    02/28/2009 01:48 PM <DIR> .
    02/28/2009 01:48 PM <DIR>..
    11/26/2006 07:25 PM <DIR> .DownloadManager
    07/02/2008 05:02 AM <DIR> .SunDownloadManager
    01/31/2006 11:22 AM <DIR> animation
    02/19/2009 11:01 PM <DIR> Application Data
    02/27/2009 04:27 PM <DIR> Cookies
    02/28/2009 05:38 AM <DIR> Desktop
    08/07/2008 01:18 PM <DIR> Favorites
    01/31/2006 11:22 AM <DIR> images
    01/16/2006 01:04 PM <DIR> Local Settings
    09/25/2008 01:54 PM <DIR> macabletemp
    02/27/2009 03:42 PM <DIR> My Documents
    01/19/2009 12:06 AM <DIR> NetHood
    04/29/2005 02:24 AM <DIR> PrintHood
    02/28/2009 05:44 AM <DIR> Recent
    01/06/2009 04:07 PM <DIR> SendTo
    04/29/2005 02:24 AM <DIR> Start Menu
    04/29/2005 02:24 AM <DIR> Templates
    09/18/2005 10:17 AM <DIR> UserData
    10/15/2006 04:19 PM <DIR> viewone
    01/31/2006 11:22 AM <DIR> win2k_xp
    10/15/2005 12:08 AM <DIR> WINDOWS
    0 File(s) 0 bytes
    23 Dir(s) 20,630,265,856 bytes free

    You should be able to import into Excel, delete the 3 columns and export as text.
    ScottGem's Avatar
    ScottGem Posts: 64,966, Reputation: 6056
    Computer Expert and Renaissance Man
     
    #11

    Feb 28, 2009, 03:40 PM
    I would use

    DIR /AD/S > filename.txt

    This will give you a listing of all directories and their subdirectories in a text file names filename.txt

    If you want to include the file in the directories then use

    DIR /S > fielename.txt

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

Commercial names to botanical names [ 1 Answers ]

Sirs, I want to know botanical names of all fruits,plants and flowers,particulerly all horticulture products and floriculture products.i.e. from commercial popular name to botanical names. Thank you and with regards. J.B.Gandhi

Names [ 9 Answers ]

What the prettiest boy or girl name? I like Edward and Summer! :D

MSN names [ 2 Answers ]

It would really help if you could give me some GOOD msn names.. Names and Nicknames... I want it to be cool.. like emo cool, sk8 cool... not like PINKY PRINCESS style.. thx a lot:D

Subfolders are created 'cause of malicious software... [ 4 Answers ]

Hi, Few days back, I used a pen drive which subsequently started to cause problems by making subfolders (duplicate) of original folders. Now, the computer is going to meet its ending day. What should I do now? Any suggestion would really be appreciated.


View more questions Search