Quick Tip: Windows directory file list

In a previous version of Windows (circa Windows95 or older) there was a button in the toolbar of it’s equivalent of Windows Explorer that generated a list of files in the open directory, in a text file. Despite searching through http://toastytech.com/guis/indexwindows.html I cant locate an image of it or find a demo of it in action but it was pretty useful at the time and I have longed for it to become a feature once again.

Quite often you need to execute something from the command line and that generally means starting cmd.exe and then using a series of CD commands to get to the location of the exe you want to start. That or you have to open Windows Explorer to navigate where you want to go and then copy and right click, paste the path into the CD command to get there a little quicker.

9ez4gDvqsor3SiYc2D7W_eP_9EPCAyETnoxA9PUS

qaxYAIG7FfDwsbQMIzs-a0E7SvikQ9IYA9NNJ4Pf

No more.

Open Windows Explorer and navigate to the directory you need.

mbl-pGJBiLiiAgCUTJkg0x4GleVSysTTyBxsV_-s

Press Alt + D.

A8eoOojf8IQWmH8OmU7zbUJ3fROgup_WjaYw79_I

Your cursor is now in the address bar at the top of the window. Type cmd and press enter.

qqXJDku6Uz-YgdTVjFYnDZP8-FhYvu1I7Ddok1Df

Hey presto! You now have a command window at the Windows location of your choosing.

F0XBZsztoTpw7_soWKqVeNZ65LFHfAopWWZKP0Ch

Now, getting back to the functionality mentioned at the start of this blog, if you want a list of the files in this directory simply type DIR /B > List.txt and press enter.

bhS7Q70cb7HVB8-lvT7QVwUlnl8uQd_WwJC-wBvZ

You can now type Exit at the command prompt to close cmd.exe, or click the Close Window button.

In Windows Explorer you will now find a file called List.txt that when you open it contains a list of the files in the directory.

solpUA7yvDkZmxa5WWffL6BnoIL-jEj5oQH-C9r4

AuJLTtr91aKIonZpSCeoHWpOacWFajP1yNbBl2Fg

While we are staring at the Tools directory on my laptop this is another great opportunity to remind everyone about the great suite of tools from sysinternals and to recommend using the SyncTools app from Kenny Kerr to keep them all up to date.

Hope this helps!

If you can refer me to a source that names the tool, the version of Windows it was in or even better shows it in action then I would be very impressed, please let me know in the comments.