Skip to content

spits out a sorted csv of how big your games folders are

Notifications You must be signed in to change notification settings

darxtorm/gamesaudit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

gamesaudit.bat

spits out a sorted csv of how big your games folders are

here you can set where you want your results to end up SET OUTPUTFOLDER="D:\temp\gamesaudit"

there are two dependencies for this script, they are both expected to be in your path

the directory calculations are done by du.exe, this is required and nothing good will happen otherwise

du.exe can be obtained here: https://docs.microsoft.com/en-us/sysinternals/downloads/du

the sorting below requires cmsort.exe being in your path, this is optional but recommended; the results will be unsorted without it

cmsort.exe can be obtained here: http://www.chmaas.handshake.de/delphi/freeware/cmsort/cmsort.htm#download

!! IMPORTANT !! the first 'du' line in your script must not contain | more +1 | and must use only one > symbol. ALL following 'du' lines must use two >> symbols and include | more +1 | as per the examples!

if all your games are in a few folders, this is easy. everything should be in lowercase unless noted otherwise! three examples below:

  1. games folder which only contains named games as subfolders; put path inbetween quotes "" ; path uses \ between each folder in the findstr bit

du -l 1 -c "c:\games" | more +1 | findstr /v "c:\games\" >> %OUTPUTFOLDER%\games_usage.csv

  1. games folder which contains another games folder (D:\Games1\Games2) inside it; findstr bit must include second folder, this folder's name is CASE SENSITIVE; you will need to specify second folder in another 'du' line as a game folder itself

du -l 1 -c "d:\games1" | more +1 | findstr /v "d:\games1\" | findstr /v "d:\games1\Games2\" >> %OUTPUTFOLDER%\games_usage.csv

  1. single game folder; doesn't need any findstr part

du -l 0 -c "c:\program files (x86)\overwatch" >> %OUTPUTFOLDER%\games_usage.csv

About

spits out a sorted csv of how big your games folders are

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published