Title: RE: File Owernship Info on NTFS Drive

Thanks, I just looked at it.  Running the example it appears to spit out all the permissions for the file.  I am just looking for the owner, I didn’t happen to see that info.

 

Example dir /Q option from command line

06/10/2003  01:04 PM             3,239 mydomain\user         ServerDupsForSQL.plx

06/10/2003  03:01 PM               391 mydomain\user         testing.plx

               2 File(s)          3,630 bytes

               2 Dir(s)   6,648,127,488 bytes free

 

Just looking for the owner, the mydomain\user part for each file.  Maybe I am just not seeing it right.

 

Dean

 

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Messenger, Mark
Sent: Tuesday, June 10, 2003 2:41 PM
To: '[EMAIL PROTECTED]'; Perl-Win32-admin (E-mail)
Subject: RE: File Owernship Info on NTFS Drive

 

Have you checked out the POD for Win32::FileSecurty?  The example code looks to be just what you need :)

-----Original Message-----
From: Dean Sadler [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 10, 2003 9:38 AM
To: Perl-Win32-admin (E-mail)
Subject: File Owernship Info on NTFS Drive

 

I have been away from Perl for a little while.  So I am pretty rusty.  I
have a simple script that runs thought a set of directories to gather up
some info for a database import.  The usual stuff, filename, directory,
size, server name, modified date, etc.  I would like to get the file
ownership, much like you can with a command line Dir /Q.  This is a W2K AD
environment.  Can some point me in the right direction for this?  The usual
stat->uid comes up empty on Win32.

TIA,

Dean

Reply via email to