Get the folder capacity using PowerShell via the old-school method. Old-school since we will utilize the native “dir” command, just like the good old days of DOS. PowerShell dir command output is not the same with the native windows system32 dir command line just like in DOS system. The output will be in bytes since it is from the command line but of course, if you are command line junkie it will be easy to read even if the capacity is written in bytes. First, fire up notepad write the dir command plus the full folder path of the specified folder in which you like to monitor or want to know the capacity. dir “c:\users\dmusic\music folder 001” The path is enclosed in quotes since the folder has spaces and save the notepad as a batch file with “.bat” extension. Open PowerShell command line window or PowerShell ISE and type the following command: #change the path to where the batch file was saved $folder_base_cap = d:\read_folder_cap.bat ...
Make the world a better place by sharing knowledge, ideas and anything that you can give that comes from the heart.