Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

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