Results 1 to 10 of 10

Thread: Command line for making a directory list?

Threaded View

  1. #2
    Join Date
    Aug 2006
    Posts
    578

    Lightbulb

    Hi DeLuk,

    I'm not sure if this is what you are looking for, but here are a couple batch files that you might want to try/play around with. Both generate long lists and you might wish to include switches to pare them down.

    -- Just copy the items in quotes below to NOTEPAD
    -- Save them to your Desktop as FindFilesA.bat and FindFilesB.bat
    -- Then, just doubleclick on them and your results will pop up in Notepad. When you close notepad, the file will be deleted. So, remember to save it

    @ECHO OFF

    cd %systemdrive%\Documents and Settings\
    dir /a >> %systemdrive%\filelist.txt
    notepad %systemdrive%\filelist.txt
    del /q %systemdrive%\filelist.txt


    This second one adds a couple switches, but is still quite a list:

    @ECHO OFF

    cd %systemdrive%\Documents and Settings\
    dir /a /b /s >> %systemdrive%\filelist.txt
    notepad %systemdrive%\filelist.txt
    del /q %systemdrive%\filelist.txt


    **
    I should add that, if you want to find a more specific folder, you could modify the following:

    cd %systemdrive%\Documents and Settings\User Name\Desired Folder Name for example.......


    Let me know if this helps or if you have any questions.

    Best Luck
    PP
    Last edited by PhilliePhan; 11-09-2006 at 10:29 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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