I am trying to find a command in perl to find disk space on a servers d drive and put it into a variable so i may do some calcualtions.
The below command does not seem to work. any suggestions?
my $ref =`cmd /c DIR \\swmn00xd00073\D$\ | FIND /I "BYTES FREE"`;