You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use this command to quickly get the size of a folder. You also have an option to include hidden files. The command will measure all files in all subdirectories. The command includes a format file with additional view to display the total size in MB or GB.
@@ -1145,6 +1166,6 @@ You will need to manually install the file.
1145
1166
1146
1167
## Compatibility
1147
1168
1148
-
Where possible these commands have been tested with PowerShell 7, but not every platform. If you encounter problems, have suggestions or other feedback, please post an issue. It is assumed you will not be running this commands on any edition of PowerShell Core or any beta releases of PowerShell 7.
1169
+
Where possible these commands have been tested with PowerShell 7, but not every platform. If you encounter problems, have suggestions or other feedback, please post an issue. It is assumed you will __not__ be running this commands on any edition of PowerShell Core or any beta releases of PowerShell 7.
This command is an alternative to discovering the size of a folder, or at least an easier method. Use the -Hidden parameter to include hidden files in the output. The measurement will include all files in all subfolders.
22
+
This command is an alternative to discovering the size of a folder, or at least an easier method. Use the -Hidden parameter to include hidden files in the output. The measurement will include all files in all sub-folders.
23
23
24
24
## EXAMPLES
25
25
@@ -73,7 +73,7 @@ Get the top level directories from D and pipe them to Get-FolderSizeInfo. Items
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
Copy file name to clipboardExpand all lines: en-us/PSScriptTools-help.xml
+152-3Lines changed: 152 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -4147,7 +4147,7 @@ Mode LastWriteTime Length Name
4147
4147
</maml:description>
4148
4148
</command:details>
4149
4149
<maml:description>
4150
-
<maml:para>This command is an alternative to discovering the size of a folder, or at least an easier method. Use the -Hidden parameter to include hidden files in the output. The measurement will include all files in all subfolders.</maml:para>
4150
+
<maml:para>This command is an alternative to discovering the size of a folder, or at least an easier method. Use the -Hidden parameter to include hidden files in the output. The measurement will include all files in all sub-folders.</maml:para>
4151
4151
</maml:description>
4152
4152
<command:syntax>
4153
4153
<command:syntaxItem>
@@ -4167,7 +4167,7 @@ Mode LastWriteTime Length Name
<maml:para>Test if a folder is empty of files</maml:para>
10850
+
</maml:description>
10851
+
</command:details>
10852
+
<maml:description>
10853
+
<maml:para>This command will test if a given folder path is empty of all files anywhere in the path. This includes hidden files. The command will return True even if there are empty sub-folders. The default output is True or False but you can use -Passthru to get more information. See examples.</maml:para>
What if: Performing the operation "Remove Directory" on target "C:\work\demo3".
10971
+
What if: Performing the operation "Remove Directory" on target "C:\work\installers".
10972
+
What if: Performing the operation "Remove Directory" on target "C:\work\new".
10973
+
What if: Performing the operation "Remove Directory" on target "C:\work\sqlback".
10974
+
What if: Performing the operation "Remove Directory" on target "C:\work\todd".
10975
+
What if: Performing the operation "Remove Directory" on target "C:\work\[data]".</dev:code>
10976
+
<dev:remarks>
10977
+
<maml:para>Find all empty sub-folders under C:\Work and pipe them to Remove-Item. This is one way to remove empty folders. The example is piping objects to ForEach-Object so that Remove-Item can use the -LiteralPath parameter, because C:\work[data] is a non-standard path.</maml:para>
0 commit comments