[python-win32] How can I modify owner file in windows??

Tim Golden mail at timgolden.me.uk
Tue Jul 29 12:10:13 CEST 2008


_ _ wrote:
> Hi... Thanks...
> 
> I try this but I have errors:
> 
> pywintypes.error: (1307,
> or
> pywintypes.error: (5,
> 
> I create "file1.txt" with user "user1" and I try change owner to "user2" 
> but don't work.
> "user1" and "user2" are users in domain "domain1"...
> 
> Can you help me please??

Also, please note that you can't *assign* ownership; you
can only *take* ownership. You have to *be* user2 to
change the owner to user2.

TJG


More information about the python-win32 mailing list