miko Posted July 6, 2005 Posted July 6, 2005 (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 thattype dir /? at the DOS prompt and change parameters to suit yourselfbug (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 July 8, 2005 by miko
jaclaz Posted July 6, 2005 Posted July 6, 2005 Nice idea.Only, where will the "filelist.txt" file be written to?Root (C:\) or C:\windows?jaclaz
miko Posted July 6, 2005 Author Posted July 6, 2005 (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 July 6, 2005 by miko
ack-hh Posted July 6, 2005 Posted July 6, 2005 See also:"How to add the print directory feature to Windows Explorer"http://support.microsoft.com/kb/272623/en-us/
jaclaz Posted July 6, 2005 Posted July 6, 2005 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\SUBFILESNICE!jaclaz
eidenk Posted July 7, 2005 Posted July 7, 2005 Very nice thank you. Do you know another syntax that would extract the full paths rather than the names only ?
Tihiy Posted July 7, 2005 Posted July 7, 2005 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 yourselfRemove /b.
eidenk Posted July 7, 2005 Posted July 7, 2005 (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 July 7, 2005 by eidenk
ack-hh Posted July 7, 2005 Posted July 7, 2005 Please post some excerpts from the list which showwhere the sorting "breaks".
eidenk Posted July 7, 2005 Posted July 7, 2005 (edited) ...C:\WINDOWS\Start Menu\Programs\StartUp\RAM_ME.exe.lnkC:\WINDOWS\Start Menu\Programs\StartUp\Smiley.lnkC:\WINDOWS\Start Menu\Programs\StartUp\Strokeit.lnk (Too many files, directory not sorted)C:\WINDOWS\SYSTEM\ISSETUP.DLLC:\WINDOWS\SYSTEM\SYSIEX.BINC:\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 July 7, 2005 by eidenk
ack-hh Posted July 8, 2005 Posted July 8, 2005 Try[HKEY_CLASSES_ROOT\Drive\shell\FList\command]@="C:\\WINDOWS\\command.com /c dir \"%1\" /a-d /b /s|sort>FileList.txt"
miko Posted July 8, 2005 Author Posted July 8, 2005 (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 ) Edited July 8, 2005 by miko
PROBLEMCHYLD Posted July 9, 2007 Posted July 9, 2007 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 thattype dir /? at the DOS prompt and change parameters to suit yourselfbug (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-hanyway to update this file so that it lists subfolders as well
Sfor Posted July 9, 2007 Posted July 9, 2007 @="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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now