Viewing 4 posts - 16 through 19 (of 19 total)
Oh, I see... What about this:
$d = New-Object -typename System.IO.DriveInfo -argumentlist "C:"
$d
http://technet.microsoft.com/en-us/library/ee692723.aspx
Should also work with PS 1.0. Check it out!
February 15, 2011 at 6:28 am
Try this:
Param([string]$ComputerName="$env:computername")
clear;
function GetDrivetypeName([int]$DriveType) {
switch($DriveType) {
0 {'Unknown'}
1 {'No Root Directory'}
2 {'Removable Disk'}
3 {'Local Disk'}
4 {'Network Drive'}
5 {'Compact Disk'}
6 {'RAM...
February 15, 2011 at 4:49 am
OFFTOPIC: MUTHUKKUMARAN, you have the coolest name, I've ever heard!:-P
I guess it's not the first time you hear this, isn't it?
December 10, 2009 at 3:26 am
November 23, 2009 at 3:11 am
Viewing 4 posts - 16 through 19 (of 19 total)