Results 1 to 13 of 13
  1. #1
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Texas, USA
    Posts
    374
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Retreive folder/file names (XP Home)

    How to retrieve the name of all folder inside a folder in Windows Explorer? In the same token, how to retrieve all the file name inside a folder?

  2. #2
    Uranium Lounger viking33's Avatar
    Join Date
    Jun 2002
    Location
    Cape Cod, Massachusetts, USA
    Posts
    6,308
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Retreive folder/file names (XP Home)

    Dennis,
    What do you mean by "retrieve"? Were they deleted or renamed or what? More info needed.

    bob
    BOB
    http://lounge.windowssecrets.com/S/flags/USA.gif http://lounge.windowssecrets.com/S/f...sachusetts.gif


    Long ago, there was a time when men cursed and beat on the ground with sticks. It was called witchcraft.
    Today it is called golf!

  3. #3
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Texas, USA
    Posts
    374
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Retreive folder/file names (XP Home)

    I just need the folder name and file name in Windows Explorer. For example, I have a folder containing 30 files. How to export these 30 file names to Word?

  4. #4
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Retreive folder/file names (XP Home)

    Are you wanting to use the folder name and file names within Word - e.g. to run some code to open the files...?
    Or do you want to have them listed in a Word document, e.g. to print-out the listing?

  5. #5
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Retreive folder/file names (XP Home)

    Dennis, try heading over to Karen Kenworthy's website and downloading the Directory Printer. You can use it to generate a file with the information you need. Not to mention, it's a pretty handy-dandy utility to have around anyway!!
    -Mark

  6. #6
    Silver Lounger
    Join Date
    Apr 2001
    Location
    New York, New York, USA
    Posts
    2,328
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Retreive folder/file names (XP Home)

    Download and use Karen's Directory Printer - it's free. You can export file names to the text file and then copy and paste them into Word document, Excel worksheet etc.

  7. #7
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Texas, USA
    Posts
    374
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Retreive folder/file names (XP Home)

    Just want to have them listed in a Word document, e.g. to print-out the listing.

  8. #8
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Texas, USA
    Posts
    374
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Retreive folder/file names (XP Home)

    There are three downloads on this website. Which one I should use?

    Visual Basic Runtime v6.0
    Required to install and run Directory Printer 1 MB

    Karen's Directory Printer
    Download and run to install Directory Printer 947,064 bytes

    VB6 Source Code
    Programmers only 78,712 bytes

  9. #9
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Retreive folder/file names (XP Home)

    Dennis, you shouldn't need the VB runtimes - you can always download them if you do. The source code is equally irrelevant unless you want to see the code that makes up the program. That leaves you with the option in the middle. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>
    -Mark

  10. #10
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Retreive folder/file names (XP Home)

    "shouldn't need the VB runtimes" if this file has NOT been installed on your machine you WILL need to, MOST machines DO NOT have it installed.

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  11. #11
    3 Star Lounger
    Join Date
    Dec 2000
    Location
    Texas, USA
    Posts
    374
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Retreive folder/file names (XP Home)

    I installed only the middle one without installing the VB runtimes. It worked!

    I don't recall I have VB runtimes installed in my PC. Can it be that the OfficeXP suites in my PC comes with VB runtimes? Otherwise...

  12. #12
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    Cincinnati, Ohio, USA
    Posts
    7,089
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Retreive folder/file names (XP Home)

    The VB runtimes are often silently installed by applications, and (I may be off on this) also ship with Windows. The runtimes at Karen's site are provided mostly for older platforms, such as Windows 95/8, that do not have the required runtime files.

    As to whether Office XP installs those, I can't say - but I do know it installs a lot of other stuff!
    -Mark

  13. #13
    3 Star Lounger
    Join Date
    Aug 2001
    Location
    Jeddah, Saudi Arabia
    Posts
    243
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Retreive folder/file names (XP Home)

    For information. (I'm showing my age here).

    Another 'olf fashioned' way is to use the DOS Dir command and direct the output to a file.

    Dir /ad >mydir.txt will send a list of directory names to the file mydir.txt

    Dir /b /ad >mydir.txt will send just the folder names to mydir.txt

    Create a batch file with the command you want in it and use command.com to run it

    on the Run menu enter

    command.com mybatchfile.bat


    Regards,

    Kevin Bell

Posting Permissions

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