Results 1 to 3 of 3
  1. #1
    2 Star Lounger
    Join Date
    May 2008
    Location
    Jacksonville, Florida, USA
    Posts
    142
    Thanks
    52
    Thanked 0 Times in 0 Posts

    Create file of folder file names

    OS: Win7 HP x64 SP1

    I want to create a text file that contains a list of the file names contained in a folder.

    I would appreciate it if someone could provide me a script for doing this task.
    Dell Inspiron 15R, 8GB, Win7 Home Premium 64bit SP1
    All help truly appreciated!

  2. #2
    Super Moderator Rick Corbett's Avatar
    Join Date
    Dec 2009
    Location
    South Glos., UK
    Posts
    2,141
    Thanks
    101
    Thanked 579 Times in 464 Posts
    You can use dir with a redirect. For example: dir C:\Windows > C:\Temp\list.txt.

    Open a command prompt and type dir /? to get a list of the possible operators.

    I must admit that I'm too lazy to try remembering all the operators so I still use Karen Kenworthy's Directory Printer. Its Save to disk option is incredibly easy to configure and use.

    Hope this helps...
    Last edited by Rick Corbett; 2016-11-25 at 10:35. Reason: Corrected typo

  3. The Following User Says Thank You to Rick Corbett For This Useful Post:

    flavet (2016-11-25)

  4. #3
    WS Lounge VIP access-mdb's Avatar
    Join Date
    Dec 2009
    Location
    Oxfordshire, UK
    Posts
    1,723
    Thanks
    146
    Thanked 156 Times in 149 Posts
    Open a CMD window (aka dos window).
    Navigate to the folder.
    enter (without quotes) "dir > list.txt
    This will create a file with the contents of the dir command in the current folder.

    Enter "dir /?" to get a list of parameters for listing subfolders and different info in the lists.

    Note > list.txt will delete that file should it already exist and that you can append more info by using >> list.txt

    Gah, beaten to the punch
    Talk is cheap because supply exceeds demand

  5. The Following User Says Thank You to access-mdb For This Useful Post:

    flavet (2016-11-25)

Posting Permissions

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