Roger, You're right... it turns out that the *network* owner of a file or directory is stored with the file in Windows, and can be retrieved from the command line using the /Q switch with the DIR command. So for example, if I was logged in as KEN in the domain THUNDER, documents I created would be marked with the "owner" of THUNDER\KEN. You can get this from Rev using the shell() command, and then parsing the results. So for example when I'm in the command line and type:
dir /Q I get something like this for each entry: 01/05/2003 06:05 PM 1,028 THUNDER\KEN MyFile.txt You can then parse out the result from there. The "owner" for Office documents is a separate Office-defined name that is stored with Office documents. Hope this helps, Ken Ray Sons of Thunder Software Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 05, 2003 3:23 PM Subject: Re: Get File Owner > > Ken, > > For the past 8 years our department has used DEC OpenVMS servers for file > storage/processing. Next month, we are up/down-grading to Windows 2000 > servers. In VMS, I could run simple commands like "DIR > /date=modified/owner" to get a directory listing of the current folder with > as little or as much detail as I wanted. VMS, like unix is multi-user, and > we took advantage of this for tracking employee errors. Without the ability > in the OS to get this info from the files themselves, there will be finger > pointing, lying and cheating about who really screwed up. I would rather > have the system report the truth. These are not MS Office documents, but I > would like to know what you figured out. These files are proprietory > graphics files for printing... completely non-standard stuff. Thanks for > any ideas you can contribute. > > Roger Eller > [EMAIL PROTECTED] > > > > Roger, > > > > If it is MS Office documents, I can put together a solution for you that > > will read the document properties of the documents (did a bit of research > > and I now know what to do). Just let me know. > > > > Ken Ray > > Sons of Thunder Software > > Email: [EMAIL PROTECTED] > > Web Site: http://www.sonsothunder.com/ > > > >> ----- Original Message ----- > >> From: <[EMAIL PROTECTED]> > >> To: <[EMAIL PROTECTED]> > >> Sent: Saturday, January 04, 2003 10:52 AM > >> Subject: Get File Owner > >> > >> > >>> > >>> Does anyone know how to determine the "owner" (username of person who > >>> created or modified) of a speciofic file on Windows NT or 2000. I was > >>> thinking maybe a shell command would do this, or is there something in > >>> transcript that will get this info? > >>> > >>> Roger Eller > >>> [EMAIL PROTECTED] > >>>____________________________________ > >>> use-revolution mailing list > >>> [EMAIL PROTECTED] > >>> http://lists.runrev.com/mailman/listinfo/use-revolution > >>> > > > _______________________________________________ > use-revolution mailing list > [EMAIL PROTECTED] > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
