Jump to content

File List (FileList.txt) Registry Tweak


miko
 Share

Recommended Posts

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
Link to comment
Share on other sites


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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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. :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

...

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
Link to comment
Share on other sites

[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
Link to comment
Share on other sites

  • 2 years later...
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

Link to comment
Share on other sites

@="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.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...