Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

listing all folder contents, in a text file

Featured Replies

the next time you want to make a list of files in a folder, just go to that folder in a command prompt. Then run this command:

dir /B /S >> file-list.txt

-OR-

tree /F /A >> file-list.txt

That will make a new file in that folder containing a list of all files.

Released that over 2 years ago in a BETA of my Tweak app but heres the reg stuff will do same thing and open it in Notepad. No, I discovered this elsewhere I only refined it better.

Now you simply right click the folder and choose the Dir List

I enclosed it in a REG_Expand_SZ so it will dynamically get the systemdrive

Want to toy with it more? Open a command prompt on a folder and type Dir /?

BTW

 sucks nowadays adding extra BS not needed so maybe this quote will do.

Edited by maxXPsoft

Released that over 2 years ago in a BETA of my Tweak app but heres the reg stuff will do same thing and open it in Notepad. No, I discovered this elsewhere I only refined it better.

...

It adds Dir List to R click menu OK but doesn't actually write anything in the txt file (the first time it runs it asks me to create one). The cmd window keeps saying:

The system cannot find the file specified.

Or have I missed something?

Yzöwl

Forgot i ever posted that in Unattended

looks like prath forgot also

:rolleyes:

Edited by maxXPsoft

  • Author

Yeah, must have forgot.... :lol:

Anyways, this is for a different purpose. Plus its meant to be usable straightaway without 3rd party tools, so PrintFolder outside the purview of this.

And since this is meant to be used in a scripted unattend, a REG for right-click is also outside purview.

Why not try this.

Step 1

You make a bat file with this command and name the bat file, filelist.bat

here's the command!

dir /a /-p /o:gen >filelisting.txt

Step 2

Now copy that bat file to the windows folder.

Step 3

make a reg file

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Folder\shell\Filelister]

[HKEY_CLASSES_ROOT\Folder\shell\Filelister\command]

@="C:\\WINDOWS\\filelist.bat \"%1\""

Make sure you have the same name of the (filelist.bat) corresponding to the regfile. You name it what ever you want really.

Thats it!

You should get a document called filelisting.txt.

Having read all the discussions here and elsewhere I prefer prathapml's method for its simplicity. I can name the txt file to my liking. If I were to do this a lot then using one of the other methods might be better.

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.