I know, we are not talking about analytics and no, this is not going to set me as a great data scientist… By the way: have you ever wondered how to list all files and folders within a root folder just hitting a button?

I have been looking for something like that quite a lot of times, for instance when asked to write down an index of all the working papers pertaining to a specific audit ( yes, I am an auditor, sorry about that): really time-consuming and not really value-adding activity.

The problem: how to list file and folders within a folder

This is not an easy problem to solve, mainly because you don’t know how many levels of nesting there will be in the choosen root folder and therefore you need to write down something enough robust to handle all possible situations.

To address the problem, I have developed a really basic application that is able to list in a log file ( .txt format) all file and folders within a root folder:

Basic File.

basic file print screen

I have done it for myself, but maybe you will find it useful as well.

How does it works

Basic file doesn’t require a lot of setting up:

1. select the root folder using ‘select folder’ button

select

2. hit the ‘scan’ button .

scan

Basic File will let you instantly see the full list within the application.

Moreover it will create a ‘log.txt’ file within the root folder with all the files and folder orderly listed. The log is accesible using the ‘open log’ button.

log

You can easily copy the list from the application or from the log and do whatever you want with it.

Download the application

You can download the runnable application ( for Windows only) at the end of the post for free.

If you are interested in giving a look to the code, I have uploaded it on the Basic File repository on GitHub.

Up to you

Do you know a faster/better way to list files and folders in a folder? I will be pleased to hear it from you.

Thank you JTT! (if you are a command line user).

As suggested by JTT (unfortunately I was not able to retrieve your name), Command Line users can easily obtain the same result just using the command line.

1. set the folder you want to look for as the current directory

cd c:\Some_folder

2. give the following input to the command line

dir /s /b > name_of_the_file_where _you_want_to_store_the_files_list.txt

3. look for a file with the given name into the given directory.

file

thank you JTT! As said, all (kind) comments are welcome.

download the application (then click ‘setup.exe’)

If you found Basic file useful, you may be interested in other App I developed for analytics and productivity purposes. Find them out at software page

Advertisements

2 thoughts on “How to list file and folders within a folder ( basic file app)

  1. On Windows, a listing of files can be generated with the dir -command. For example, run the following command from the command line: dir /s /b > file_list.txt. Or put the command into a listDirs.bat -file, and double-click on the file. Setting different options gives you more information.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s