close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": libsvn_ra_svn-1.so.1: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Apr 25, 2020, 2:22:46 PM (6 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v6
|
v7
|
|
| 92 | 92 | PS C:\Users\yawang> |
| 93 | 93 | }}} |
| | 94 | |
| | 95 | == PowerShell == |
| | 96 | |
| | 97 | * https://learn-powershell.net/2012/08/10/locating-mount-points-using-powershell/ |
| | 98 | {{{ |
| | 99 | Get-WmiObject Win32_Volume | Format-Table Name, Label, FreeSpace, Capacity |
| | 100 | }}} |
| | 101 | {{{ |
| | 102 | Get-WmiObject Win32_Volume -Filter "DriveType='3'" | ForEach { |
| | 103 | New-Object PSObject -Property @{ |
| | 104 | Name = $_.Name |
| | 105 | Label = $_.Label |
| | 106 | FreeSpace_GB = ([Math]::Round($_.FreeSpace /1GB,2)) |
| | 107 | TotalSize_GB = ([Math]::Round($_.Capacity /1GB,2)) |
| | 108 | } |
| | 109 | } |
| | 110 | }}} |