common/tools/findPhysicalDrive.pl
changeset 924 a5ed0e6ca679
parent 891 6c56420d1006
child 955 28714977dccb
--- a/common/tools/findPhysicalDrive.pl	Thu Mar 11 13:23:18 2010 +0000
+++ b/common/tools/findPhysicalDrive.pl	Fri Mar 12 14:16:11 2010 +0000
@@ -74,7 +74,7 @@
 		next if ($driveLine =~ m{System\s*$});
 
 		# Use dir to get the freespace (bytes)
-		my @bytesFree = grep { s{^.*?(\d+) bytes free\s*$}{$1} } map {chomp;$_} `cmd /c dir /-C $letter:\\`;
+		my @bytesFree = grep { s{^.*?(\d+) bytes free\s*$}{$1} } map {chomp;$_} `cmd /c dir /-C /A $letter:\\`;
 		# Take the value from the bottom of the report
 		my $bytesFree = $bytesFree[-1];