I was wondering if there is a quicker way of getting a directory listing
from a disk. I am currently doing the following but it takes a bit of
time if I happen to have to search multiple 250Gb drives. 

 

#

# Trying to locate tests on the systems disks and establish paths to
them";

#

 

$i = c d e;

 @array = "";

 foreach $i (split/ /,$disk) {

 

    print "\nChecking $i: for the tests.....";

 

    @array1= `dir $i:\\ /B /S`;

   

    # Establish a count of how big the array is for stepping through the
array later to find the .exe file

    $lineC = @array1;

 

     # append the array if more than one disk is selected

     push(@array, @array1);

  }

 

 

Regards,

 

Ed

Reply via email to