Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Writing directory contents to a file?

  • 24-08-2003 11:16AM
    #1
    Closed Accounts Posts: 10,921 ✭✭✭✭


    Can anyone reccomend a program that can examine the contents of a directory in windows and then write all the filenames etc to a txt file?

    I know how to perform this operation in dos using the 'directory > file.txt' etc command and have made this somewhat easier by creating batch files but what I would like is a gui based program where you can just point and click the directory whose files you would like listed to a word/txt file.

    Thanks!


Comments

  • Closed Accounts Posts: 494 ✭✭Lukin Black


    This will work under Windows XP & 2000

    Save the text below as a .reg file and run it. It'll add a context menu item for folders, so when you right-click on the directory, select "Create directory listing" and it'll create a listing in the directory. Chop and change as you see fit :) You can add any modifiers to the dir command that you want.

    Here's the contents:

    [HKEY_CLASSES_ROOT\Directory\shell\DirList]
    @="Create directory listing"

    [HKEY_CLASSES_ROOT\Directory\shell\DirList\Command]
    @="cmd.exe /c \"dir \"%1\" > \"%1\"\\dirlist.txt\""


Advertisement
Advertisement