Home Forums Tech Windows How to Get a List of Files in a Directory as a Text

Viewing 1 post (of 1 total)
  • Author
  • #2305
    Mr. Mangus

    Let’s say you need to include a list of files in a given directory into your email.

    Surprisingly, there is no obvious way to do this in Windows without a third party software.

    Here is a sure way to do that using just Command Prompt and Microsoft Word.

    To get a list of files in a directory use this command:

    DIR C:Windows /a > C:FileList.txt

    Open C:FileList.txt in Word and Alt+Select the area of the document that contains only file names.

    Copy using keyboard (Ctrl+C) and paste into email, or Excel, or any other document where you need to see the list.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.