We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DiskMethods
info_disk
1 parent 07cce61 commit e64bcd7Copy full SHA for e64bcd7
winfetch.ps1
@@ -183,7 +183,7 @@ $cimSession = New-CimSession
183
$buildVersion = "$([System.Environment]::OSVersion.Version)"
184
$os = Get-CimInstance -ClassName Win32_OperatingSystem -Property Caption,OSArchitecture -CimSession $cimSession
185
$GAP = 3
186
-Add-Type -TypeDefinition @'
+$diskMethodsType = @'
187
using System;
188
using System.ComponentModel;
189
using System.Runtime.InteropServices;
@@ -736,6 +736,7 @@ function info_memory {
736
737
# ===== DISK USAGE =====
738
function info_disk {
739
+ Add-Type $diskMethodsType
740
[System.Collections.ArrayList]$lines = @()
741
742
function to_units($value) {
0 commit comments