RE: readir

2003-06-22 Thread Charles K. Clarkson
Josimar Nunes de Oliveira <[EMAIL PROTECTED]> wrote: : : Hello Clarkson, : Thanks for everything you explained. You're welcome. : The 'System Volume Information' is a restricted system folder : (only SYSTEM can access) in NTFS. I don't know much about win 2k. That file may be inaccess

Re: readir

2003-06-21 Thread R. Joseph Newton
Ronen Kfir wrote: > Hi, > > This is not I was asking for! > I'll explain again: > 1. Find all the places where a one specific file (with same name), is shown by read > recursively all subdir of certain directory (it is a trigger file for the rest of my > program). What you wrote is only the top

Re: readir

2003-06-21 Thread Josimar Nunes de Oliveira
es de Oliveira'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Saturday, June 21, 2003 6:58 AM Subject: RE: readir > Josimar Nunes de Oliveira <[EMAIL PROTECTED]> wrote: > : > : My O.S. is w2k and I put the argument 'C:\\' to run; > > You

RE: readir

2003-06-21 Thread Charles K. Clarkson
Josimar Nunes de Oliveira <[EMAIL PROTECTED]> wrote: : : My O.S. is w2k and I put the argument 'C:\\' to run; You don't have to use "C:\\". "C:/" is preferred. : then a message is : displayed: : : C:\Documents and Settings\Administrador\Desktop>perl filefind.pl : Can't opendir(c:\/

Re: readir

2003-06-20 Thread Josimar Nunes de Oliveira
tion? Other thing that seems to be basic in perl, but how to print the list obtained from File::Find, like a for/foreach/while ? Thanks, Josimar - Original Message - From: "Charles K. Clarkson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Ju

RE: readir

2003-06-20 Thread Charles K. Clarkson
Josimar Nunes de Oliveira <[EMAIL PROTECTED]> wrote: : use File::stat; : : listfiles( 'C:' ); : : # : for($i=0;$i<$count;$i++){ : print "\n", $allfiles[$i][0], ' => ', $allfiles[$i][1]; : } : # : : sub listfiles{ : my $folder = shift; : $folder .= '\\'; : opendir ( my $media, $folder ); : m

Re: readir

2003-06-20 Thread Josimar Nunes de Oliveira
<[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 5:08 PM Subject: RE: readir Hi, This is not I was asking for! I'll explain again: 1. Find all the places where a one specific file (with same name), is shown by read recursively all subdir of certain direc

RE: readir

2003-06-19 Thread Dan Muey
> Hi, Howdy > > This is not I was asking for! > I'll explain again: > 1. Find all the places where a one specific file (with same > name), is shown by read recursively all subdir of certain > directory (it is a trigger file for the rest of my program). > What you wrote is only the top level

RE: readir

2003-06-19 Thread Ronen Kfir
r: 972-55-405910 E-mail: [EMAIL PROTECTED] -Original Message- From: Josimar Nunes de Oliveira [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2003 6:21 PM To: Ronen Kfir; [EMAIL PROTECTED] Subject: Re: readir Hi, try this sample code: $dir = 'C:\\Folder\\.'; print "

Re: readir

2003-06-19 Thread John W. Krahn
Ronen Kfir wrote: > > Hi, Hello, > I want to use readdir to read a directory tree & find a certain file, ^^ If you need to read a directory tree then you need to use the File::Find module. > which might be present in many subdirectories (this file

Re: readir

2003-06-19 Thread Josimar Nunes de Oliveira
"Ronen Kfir" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 2:36 PM Subject: Re: readir > Yes, it works fine (theres“s one character ' in error when I wrote ""'\n", > the correct is "\n"). > Try for yourself.

Re: readir

2003-06-19 Thread Josimar Nunes de Oliveira
PROTECTED]>; "Ronen Kfir" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 19, 2003 12:24 PM Subject: RE: readir Just niticed a couple things, no biggie but: > Hi, try this sample code: > > $dir = 'C:\\Folder\\.'; > > print "'

RE: readir

2003-06-19 Thread Dan Muey
Just niticed a couple things, no biggie but: > Hi, try this sample code: > > $dir = 'C:\\Folder\\.'; > > print "'\n", $dir; Do you mean print "\n" without the single quote next to the newline ? > > opendir DIR, $dir or die "Cannot open $dir: $!"; > > foreach (@files=readdir DIR){ What is @fi

Re: readir

2003-06-19 Thread Josimar Nunes de Oliveira
Hi, try this sample code: $dir = 'C:\\Folder\\.'; print "'\n", $dir; opendir DIR, $dir or die "Cannot open $dir: $!"; foreach (@files=readdir DIR){ print '"\n", $_; } Good luck, Josimar - Original Message - From: "Ronen Kfir" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Th