Get file owner in Windows
Emile van Sebille
emile at fenx.com
Thu Nov 8 14:10:36 EST 2001
More information about the Python-list mailing list
Thu Nov 8 14:10:36 EST 2001
- Previous message (by thread): Get file owner in Windows
- Next message (by thread): Get file owner in Windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
"R.Marquez" <ny_r_marquez at yahoo.com> wrote in message news:8a27e309.0111081046.5bafb354 at posting.google.com... > Does anyone have a handy example of how to get the owner of a file in > windows NT/2000? E:\>python ActivePython 2.1, build 210 ActiveState) based on Python 2.1 (#15, Apr 19 2001, 10:28:27) [MSC 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.popen("dir /q hack.py").read().split()[-11] 'BUILTIN\\Administrators' There's probably something somewhere in win32 as well... -- Emile van Sebille emile at fenx.com ---------
- Previous message (by thread): Get file owner in Windows
- Next message (by thread): Get file owner in Windows
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list