DIGIT-ARC read-only archive · snapshot: July 23, 2026

Create list of all files and folders with a right-click!!

14 posts · originally from https://geek.digit.in/community/threads/create-list-of-all-files-and-folders-with-a-right-click.74039/

shady_inc
shady_inc Original post #1
Nov 24, 2007 at 8:35 PM
Create a list of all files and folders inside a particular folder with a right-click!!
Taken from The Elder Geeks

What's it about??: After this tutorial,an option will be available whenever you right-click any folder which will display all the files and sub-folders inside that folder and save it to a text file.

  1. Create a .bat file
    Open Notepad and copy-paste the following data in it.
    cd %1
    dir /a /b /-p /o:gen >C:\filelist.txt
    start notepad C:\filelist.txt
    You can edit the path to your preference.Now name this file anything you wish and save it anywhere you wish.
  2. Make file visible in right click context menu.
    Open explorer window,Go to Tools>Folder Options..>File types and from the registered file types list,select FOLDER.Click on Advanced>New....In the Action box,type in the name you want in context menu.For e.g. Generate File List..Then click on Browse..,navigate to the .bat file created in step 1 and save the changes.
  3. Congratulations!!
    You are done with the tutorial!!.Now right click any folder and select Generate File Listing.A text file will be created in your C:\ drive [or any path you specified in the .bat file.] called filelist.txt which contains list of all files and sub-folders in the parent folder!
"You Will Never Walk Alone"
Lucky_star
Nov 24, 2007 at 8:41 PM
Nice One!...

But its not showing the subfolders
New
New #3
Nov 24, 2007 at 8:47 PM
Works without fail:D
Thanks for nice tutorial.
ravi_9793
Nov 24, 2007 at 8:54 PM
nice one buddy :)
shady_inc
Nov 24, 2007 at 9:02 PM
Lucky_star said:
Nice One!...

But its not showing the subfolders
Works perfectly on my side.If you followed everything perfectly,the only reason I can think of is: Did the folder you try it on have any sub-folders??:D

Oh and those who tried it out,have a look at the source too.I lists quite a few modifications to this trick.
V
vaibhavtek #6
Nov 25, 2007 at 6:45 AM
cool trick m8. :cool:
work perfectly for me.
keep them coming. ;)
Romeo
Romeo #7
Nov 25, 2007 at 6:53 PM
Thanks for a good trick ! btw, Does it work in Win - Vista ? If Yes, How ?
topgear
topgear #8
Nov 25, 2007 at 7:26 PM
Nice find buddy
Lucky_star
Nov 25, 2007 at 7:52 PM
Yeah, now its working fine. I don't know what happened at that time
V
vaibhavtek #10
Nov 26, 2007 at 1:41 PM
Romeo said:
Thanks for a good trick ! btw, Does it work in Win - Vista ? If Yes, How ?

it must work.
just try and then u will understand.8)
fun2sh
fun2sh #11
Nov 26, 2007 at 2:01 PM
where is the file types association option for vista?
V
vaibhavtek #12
Nov 26, 2007 at 2:25 PM
Cannot understand what u are asking.
File Type ...???
Write the appropiate word.
shady_inc
shady_inc #13
Nov 28, 2007 at 4:28 PM
fun2sh said:
where is the file types association option for vista?
AFAIK,this will work only on XP.the steps must be different in Vista.
T
Nov 29, 2007 at 11:23 PM
hy its nice...

what if i wanna delete dat option frm context menu....

remove tab is inactive in the selection


shady_inc said:
Create a list of all files and folders inside a particular folder with a right-click!!
Taken from The Elder Geeks

What's it about??: After this tutorial,an option will be available whenever you right-click any folder which will display all the files and sub-folders inside that folder and save it to a text file.
  1. Create a .bat file
    Open Notepad and copy-paste the following data in it.

    You can edit the path to your preference.Now name this file anything you wish and save it anywhere you wish.
  2. Make file visible in right click context menu.
    Open explorer window,Go to Tools>Folder Options..>File types and from the registered file types list,select FOLDER.Click on Advanced>New....In the Action box,type in the name you want in context menu.For e.g. Generate File List..Then click on Browse..,navigate to the .bat file created in step 1 and save the changes.
  3. Congratulations!!
    You are done with the tutorial!!.Now right click any folder and select Generate File Listing.A text file will be created in your C:\ drive [or any path you specified in the .bat file.] called filelist.txt which contains list of all files and sub-folders in the parent folder!
"You Will Never Walk Alone"