print `dir/o/s/b C:\\temp > C:\\tmplist.txt`; All the files with subDir's file will be listed inside file, C:\tmplist.txt;
----- Original Message ----- From: "Groenwold, Harmen (ICT) (HK)" <[EMAIL PROTECTED]> To: "Beginners@Perl. Org (E-mail)" <[EMAIL PROTECTED]>; "Perl (E-mail)" <[EMAIL PROTECTED]>; "Perl-Win32-Users (E-mail)" <[EMAIL PROTECTED]> Sent: Monday, January 14, 2002 5:42 PM Subject: All files in a directory tree > L.S., > I'm looking for a simple way to get all files in a directory and all it's > subdirectories on Win32. > For instance, the directory structure looks like this: > > c:\temp\ > file01.txt > file02.txt > c:\temp\subdir01 > subdirfile01.txt > c:\temp\subdir01\subdir02\ > subdirfile02.txt > > Now, I want to get a list looking something like this: > > c:\temp\file01.txt > c:\temp\file02.txt > c:\temp\subdir01\subdirfile01.txt > c:\temp\subdir01\subdir02\subdirfile02.txt > > How can I do this? I know I can get listings with glob, DIRHANDLE, etc, but > I can't find anything which traverses all file in the underlying subdirs > also. > BTW, it has to work on Win32. > Thanks in advance. > > Harmen Groenwold > [EMAIL PROTECTED] > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
