Created
May 11, 2013 07:24
-
-
Save ktsugita/5559192 to your computer and use it in GitHub Desktop.
Powershell コマンド置換
$()で囲む
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$disk = Get-WmiObject -class Win32_LogicalDisk -filter "DeviceID='C:'" | |
Write-Host "Free space on drive C: at $($disk.freespace / $disk.size * 100) percent" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment