CMD: Tree
*I am not a CMD pro
CMD's tree command let's you make a very nice index file of a folder locally.
How to use:
- Get into the folder you want to be at, so let's say: `E:\example`. To do this, type: cd /d "E:\example". The /d specifies we not only want to go to said folder, but also mount that drive in our CMD instance
- then we can make the index file via tree. To run it, the syntax is: tree /a > outputfile.txt. Without /f it will only list the folders, if you add /f (after /a) it will also list the files.
With /f:
E:.
| FolderList.txt
| TreeView.txt
| TreeViewFiles.txt
|
+------Not available for sale
| setup_duke3d_2.0.0.85.exe
|
+---Arcanum Of Steamworks and Magick Obscura
| | setup_arcanum_-_of_steamworks_and_magick_obscura_1.0.7.4_ddrawfix_(77721).exe
| |
| \---Extras
| Arcanum_Artworks.zip
| Arcanum_Avatars.zip
| Arcanum_Manual.zip
| Arcanum_Map.zip
| Arcanum_Quick_Reference_Card.zip
| Arcanum_Wallpapers.zip
|
+---Arx Fatalis
| | setup_arx_fatalis_1.22_(38577)-1.bin
| | setup_arx_fatalis_1.22_(38577).exe
| |
| \---Extras
| arx_fatalis_artworks.zip
| arx_fatalis_avatars.zip
| arx_fatalis_manual.zip
| arx_fatalis_screensaver.zip
| arx_fatalis_soundtrack.zip
| arx_fatalis_wallpapers.zip
CMD: Dir
*I am not a CMD pro
Same as tree but without the ASCII formatting. Simple lists of all the folders and files within a directory
How to use:
- Get into the folder you want to be at, so let's say: `E:\example`. To do this, type: cd /d "E:\example". The /d specifies we not only want to go to said folder, but also mount that drive in our CMD instance
- then we can make the index file via dir. To run it, the syntax is: dir > outputfile.txt.
/b: This removes additional info, I highly prefer it to just have a list of 'E:\example\exaples'
/s: This allows the command to go into deeper folders as well. Without /s it will just look into 'E:\example\' but with /s, it will look into 'E:\example\examples', and deeper than that of course.
Examples:
With /b and /s:
E:\GOG installers\---Not available for sale
E:\GOG installers\Arcanum Of Steamworks and Magick Obscura
E:\GOG installers\Arx Fatalis
E:\GOG installers\Batman Arkham
E:\GOG installers\Bioshock
E:\GOG installers\Blood 2
E:\GOG installers\Carmageddon
E:\GOG installers\Crysis
E:\GOG installers\Deus Ex
E:\GOG installers\Dishonored
E:\GOG installers\Doom
it lists the contents and subfolders later, like:
E:\GOG installers\Warcraft
E:\GOG installers\Wolfenstein
E:\GOG installers\---Not available for sale\One Unit Whole Blood
E:\GOG installers\---Not available for sale\setup_duke3d_2.0.0.85.exe
E:\GOG installers\---Not available for sale\One Unit Whole Blood\Extras