Looking for a faster way of getting a directory listing from a disk
- From: epanni@xxxxxxx (Ed Panni)
- Date: Fri, 14 Jul 2006 09:56:59 -0400
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
- Follow-Ups:
- Re: Looking for a faster way of getting a directory listing from a disk
- From: Rob Dixon
- RE: Looking for a faster way of getting a directory listing from a disk
- From: Charles K. Clarkson
- Re: Looking for a faster way of getting a directory listing from a disk
- From: Paul Lalli
- Re: Looking for a faster way of getting a directory listing from a disk
- Prev by Date: Re: text search and replace script
- Next by Date: Re: MOVE ON ALREADY!!!
- Previous by thread: logfile regex
- Next by thread: Re: Looking for a faster way of getting a directory listing from a disk
- Index(es):
Relevant Pages
|
|