On 31/08/2011 13:38, Steffen Frömer wrote:
i try to check, if a file on network-share is read only. I tried
different ways.
What you're checking is the readonly attribute (which has been
there since DOS version x.0). If that is what you intended to
check, then I don't think I can offer
On 02/09/2011 10:58, Tim Golden wrote:
filename = rc:\windows\system32\drivers\etc\hosts,
win32file.CreateFile (
ntsecuritycon.FILE_GENERIC_WRITE, 0, ## exclusive write
None, win32con.OPEN_ALWAYS, 0, None
)
Just noticed that my code is unnecessarily trying to get an
exclusive lock. You
Hi,
I've been experimenting with the wmi module and so far everything is
working great, but I'm having an issue with the Win32_LoggedOnUser
class. I can seem to access it's properties. When I run the code in
debug I can see the information I want is being stored in the object
but all attempts to
On 02/09/2011 13:33, Rod Person wrote:
Hi,
I've been experimenting with the wmi module and so far everything is
working great, but I'm having an issue with the Win32_LoggedOnUser
class. I can seem to access it's properties. When I run the code in
debug I can see the information I want is being
On Fri, 02 Sep 2011 14:56:10 +0100
Tim Golden m...@timgolden.me.uk wrote:
I'm not entirely sure if this is what you're after, but I
*think* it is:
code
import wmi
c = wmi.WMI ()
for session in c.Win32_LogonSession ():
print Session, session.LogonId
for associated_user in
This is a way I solved it, maybe someone is interested.
class ScrollView(pywin.mfc.docview.ScrollView):
def OnInitialUpdate(self):
#...
frame = win32ui.GetMainFrame()
rect = frame.GetClientRect()
self.SetScrollSizes(win32con.MM_TEXT, (rect[2] - 18, rect[3]