kevyt has asked for the wisdom of the Perl Monks concerning the following question:
use File::stat; use User::pwent; my $file = 'C:\dev\test.txt'; $stat = stat( $file ); print "User id = " . $stat->uid . "\n"; print "Time = " . $stat->mtime . "\n"; use Win32::OLE; my $objShell = Win32::OLE->CreateObject("Shell.Application"); my $objFolder=$objShell->Namespace("c:\\dev") or die "$!" ; my $a = $objFolder->ParseName("test.txt") or die "$!" ; print $objFolder->GetDetailsOf($a, 8) or die "$!" ;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to get the file owner on a Windows OS
by Anonymous Monk on Aug 16, 2014 at 00:53 UTC | |
by kevyt (Scribe) on Aug 16, 2014 at 07:31 UTC | |
by Anonymous Monk on Aug 16, 2014 at 07:34 UTC | |
|
Re: How to get the file owner on a Windows OS
by locked_user sundialsvc4 (Abbot) on Aug 16, 2014 at 11:26 UTC |