blackadder has asked for the wisdom of the Perl Monks concerning the following question:
What I would like to obtain is a display like so if my @ARGV1 is adrive letter or folder.#! Path to perl.exe -w use strict; use diagnostics; use warnings 'all'; use Win32; use Win32::OLE; use Win32::ODBC; use File::Find; use File::stat; use time::localtime; use vars qw/%data/; $data{path} = $ARGV[0]; system("cls"); print "\n\nTarget Path=> $data{path}\n"; find sub { print $File::Find::name, $/ if -f _; },$data{path};
And so on…drive\folers1 File1.snd File2.sop File3.xxs dive\folder2 File10.dod File34.opo . . .
I need to do something like the below (not sure how)find sub { print $File::Find::name, $/ if -f _; },$data{path};
Since I haven't got a clue on how to begin and what to do, so your help - I couldn't stress it any more - is very very vital to me.my $file_stat = stat ($File::Find::name); print $creation_date; print $modified_date; print $accessed_date; print $file_owner; print $Full_file_path; print $file_size
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Stats for files using File::Find and DFS information
by NetWallah (Canon) on Jul 12, 2005 at 05:40 UTC | |
by blackadder (Hermit) on Jul 12, 2005 at 08:20 UTC | |
by blackadder (Hermit) on Jul 12, 2005 at 08:25 UTC |