This tweak gives me the option to make a list of all the files inside the folder/drive when I right-click on it. It is very usefull for people like me who wants to make a printable list of their huge collections (mp3's for example).
Here is the tweak. (EDIT: PROBLEMS SOLVED)
Save this as a batch file.
REG ADD "HKCR\Folder\shell\List Contents\command" /ve /d "%COMSPEC% /C DIR ""%%1\"" /B /O /S>""%%1\""\"_CONTENTS LIST.TXT""
When I right-click a folder and select "List Contents", a text file named "[FOLDERNAME]_CONTENTS LIST.TXT" will be created OUTSIDE that directory containing the list of all the files.
NOTE: It doesn't work on CDs..
I have some questions.
1. How can I replace the C:\Windows to %SYSTEMROOT%? I tried it but it didn't work. I also tried replacing C:\Windows\System32\cmd.exe to %COMSPEC% but it didn't work too.
2. I want to replace the name of the outputfile "CONTENTS LIST.TXT" to [FOLDERNAME].txt. How can I do that?
ALL PROBLEMS SOLVED!!! Well, not really.. Because it doesn't work on CDs..
Thanks to prathapml for giving me the idea of using a batch file instead of a reg file.