• Retreive folder/file names (XP Home)

    Author
    Topic
    #381601

    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?

    Viewing 1 reply thread
    Author
    Replies
    • #643937

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

      bob

      • #643946

        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?

        • #643959

          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?

          • #643995

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

        • #643969

          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!!

          • #644005

            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

            • #644009

              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. smile

            • #644038

              “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.

              DaveA I am so far behind, I think I am First
              Genealogy....confusing the dead and annoying the living

            • #644124

              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…

            • #644136

              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!

        • #643975

          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.

    • #644217

      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

    Viewing 1 reply thread
    Reply To: Retreive folder/file names (XP Home)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: