+ Reply to Thread
Results 1 to 3 of 3

How to export all directory detail i.e. all folder name with file name in Excel 2007

  1. #1
    Registered User
    Join Date
    03-17-2006
    Posts
    53

    Exclamation How to export all directory detail i.e. all folder name with file name in Excel 2007

    How to export all directory detail i.e. all folder name with file name in Excel 2007


    I have a Hard disk that's contains 709 folder and 13546 files. Now I want to export the directory detail in excel...


    Example:


    D: /BABY/ DSC00002.JPG
    D: /BABY/ DSC00010.JPG
    D: /BABY/ DSC00012.JPG
    D: /BABY/ DSC00017.JPG
    D: /BABY/ DSC00020.JPG
    D: /BABY/ DSC00022.JPG
    D: /BABY/ DSC00025.JPG
    D: /BABY/ DSC00027.JPG
    D: /BABY/ DSC00029.JPG
    D: /CHILD/ DSC00032.JPG
    D: /CHILD/ DSC00044.JPG
    D: /CHILD/ DSC00049.JPG
    D: /CHILD/ DSC00052.JPG
    D: /CHILD/ DSC00054.JPG
    D: /CHILD/ DSC00058.JPG


    Above is the example for 2 folders and its file...... & i want to export all my D: drive in excel.....

    Please Help...

    thanks
    Dalip

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: How to export all directory detail i.e. all folder name with file name in Excel 2

    Batch file, DIR command pipe the output a file, load that file into Excel maybe?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-26-2012
    Location
    Gloucestershire, England
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: How to export all directory detail i.e. all folder name with file name in Excel 2

    1. Go to a command prompt (click Start > Run type CMD <enter>)
    2. d: <enter>
    3. cd\ <enter>
    4. dir /s/b > list.txt

    This will create a text file on the root of your D: drive called list.txt (Will probably take a long time to create it!). Open this in Excel.

    You could change the field delimiters to use \ as a delimiter and then it would put each directory in a new column. Or that might just be too messy.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1