Created
November 8, 2014 04:53
-
-
Save AmrEldib/344b1f9540712a2bc064 to your computer and use it in GitHub Desktop.
MirrorHardDrives-ExistsDrive
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
function Exists-Drive ($driveletter) | |
{ | |
$drive = New-Object System.IO.DriveInfo($driveletter) | |
$drive.DriveType -ne 'NoRootDirectory' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment