Jump to content

File List (FileList.txt) Registry Tweak


Recommended Posts

Posted (edited)

REGEDIT4

[HKEY_CLASSES_ROOT\Directory\shell\FList]
@="Create File List"

[HKEY_CLASSES_ROOT\Directory\shell\FList\command]
@="C:\\WINDOWS\\command.com /c dir \"%1\" /a-d /b|sort>FileList.txt"

doesn't list folders only current folder contents although you can change that

type dir /? at the DOS prompt and change parameters to suit yourself

bug (kinda) - be aware that it always includes the FileList.txt in the list,

if done from the current folders icon (top left of a window) rightclick.

figured it the other night, no biggy, just thought some might find it handy....

edited - revised after some good input from ack-h

Edited by miko

Posted (edited)

the folder you do it to,

so if you right click on the icon on the top left corner of a folder called E:\SOMEFILES\SUBFILES and select 'Create File List' FileList.txt will be created in E:\SOMEFILES\SUBFILES

:)

Edited by miko
Posted
the folder you do it to,

so if you right click on the icon on the top left corner of a folder called E:\SOMEFILES\SUBFILES and select 'Create File List' FileList.txt will be created in E:\SOMEFILES\SUBFILES

:)

NICE!

jaclaz

Posted
Very nice thank you. Do you know another syntax that would extract the full paths rather than the names only ?

type dir /? at the DOS prompt and change parameters to suit yourself

Remove /b. :)

Posted (edited)
Remove /b.

In fact I must add /s and not remove /b to obtain I want (almost). Full pathnames list in LFN format. Just only it does list files in subdirs as well if any.

REGEDIT4

[HKEY_CLASSES_ROOT\Directory\shell\FList2]
@="Create File List with Paths"

[HKEY_CLASSES_ROOT\Directory\shell\FList2\command]
@="C:\\WINDOWS\\command.com /c dir \"%1\" /a-d /on /b /s > FileList.txt"

Takes one second to list alphabetically (almost) 7594 files in my Windows folder but unfortunately several (Too many files, directory not sorted) messages on the list. Files are there but they aren't sorted if there are too many files in a directory.

I've just tried it on drives.

REGEDIT4

[HKEY_CLASSES_ROOT\Drive\shell\FList]
@="Create File List"

[HKEY_CLASSES_ROOT\Drive\shell\FList\command]
@="C:\\WINDOWS\\command.com /c dir \"%1\" /a-d /on /b /s > FileList.txt"

Took just a few seconds to output a 5.54 MB filelist (90.676 lines) of my C:\ drive but same alphabetical sorting limitation as above.

Is there a way to output the results on the desktop ? Here despite I haven't changed the syntax for that, the output is not in the parent dir (there isn't any real one, it's My Computer) but in the root of the drive.

Edited by eidenk
Posted (edited)
...

C:\WINDOWS\Start Menu\Programs\StartUp\RAM_ME.exe.lnk

C:\WINDOWS\Start Menu\Programs\StartUp\Smiley.lnk

C:\WINDOWS\Start Menu\Programs\StartUp\Strokeit.lnk

(Too many files, directory not sorted)

C:\WINDOWS\SYSTEM\ISSETUP.DLL

C:\WINDOWS\SYSTEM\SYSIEX.BIN

C:\WINDOWS\SYSTEM\LVFWWDM.DRV

...

That is I think the most typical example.

Many others are marked as non-sorted but appear sorted. Apparently those are only directories from which I have never modified any file (and in which they were created following an alphabetical sequence ?).

Edited by eidenk
Posted

Try

[HKEY_CLASSES_ROOT\Drive\shell\FList\command]
@="C:\\WINDOWS\\command.com /c dir \"%1\" /a-d /b /s|sort>FileList.txt"

Posted (edited)

[HKEY_CLASSES_ROOT\Drive\shell\FList\command]
@="C:\\WINDOWS\\command.com /c dir \"%1\" /a-d /b /s|sort>C:\\WINDOWS\\DESKTOP\\FileList.txt"

this should do the other thing (FileList.txt to the Desktop)

also, about the printing a directory contents, it's possible ">prn" might be able to be used instead of ">FileList.txt" rather than that external batch file solution (someone would have to try this as i don't have a printer :blushing: )

Edited by miko
  • 2 years later...
Posted
REGEDIT4

[HKEY_CLASSES_ROOT\Directory\shell\FList]
@="Create File List"

[HKEY_CLASSES_ROOT\Directory\shell\FList\command]
@="C:\\WINDOWS\\command.com /c dir \"%1\" /a-d /b|sort>FileList.txt"

doesn't list folders only current folder contents although you can change that

type dir /? at the DOS prompt and change parameters to suit yourself

bug (kinda) - be aware that it always includes the FileList.txt in the list,

if done from the current folders icon (top left of a window) rightclick.

figured it the other night, no biggy, just thought some might find it handy....

edited - revised after some good input from ack-h

anyway to update this file so that it lists subfolders as well

Posted
@="C:\\WINDOWS\\command.com /c dir \"%1\" /a-d /b|find /V "FileList.txt"|sort>FileList.txt"

This improvement should remove the "FileList.txt" file from the list created.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...