Re: [python-win32] check if comserver is registered, no - install it?

2012-12-17 Thread Steffen Frömer
Quoting Tim Roberts t...@probo.com: There is no danger in redoing a registration that has already been done. All it does is add some registry keys. Might as well just do it every time. Add /s if you don't want to see the dialog box. Alternatively, assuming you are running a 64-bit Python,

[python-win32] check if comserver is registered, no - install it?

2012-11-13 Thread Steffen Frömer
Hi, i have to check, if a comserver-dll is registered in my system. comserver is registered via command regsvr32.exe /i myComServer.dll My System is Windows 7 64bit or Windows Server 2008 R2 64 bit. Is there a way to check this with python and if the check fails, can i register this? How can

[python-win32] stopping process raises Win32 exception occurred releasing IUnknown at

2012-01-24 Thread Steffen Frömer
Hello, i am trying to write a class, which starts a application and this application run other applications. My class has a start and stop-method. The stop method also stop the child-processes of my started application. At botton, i added a testclass, which represents my class. I am starting

[python-win32] socket-server failed to authorize clients in domain environment

2012-01-06 Thread Steffen Frömer
Hello, i try to run a socket server in a domain network. At first i am using the DEMO from win32-package. If i start server and client on one computer under my username, all works fine. Also the connection to another computer works perfectly. But if i run the server with my username and a

[python-win32] checking file permission on network share

2011-08-31 Thread Steffen Frömer
Hello, i try to check, if a file on network-share is read only. I tried different ways. filename = r'//server/share/filename.txt' 1: import win32api, win32con fileAtt = win32api.GetFileAttributes(filename) if (fileAtt win32con.FILE_ATTRIBUTE_READONLY): print(READONLY) 2: import os,

[python-win32] Accessing standard Mail-application

2011-07-08 Thread Steffen Frömer
Hi, i tried to access standard mail application to write a mail. I know the machanism with urllib, but there is no regular way to add attachments. Actually i do following: app = Outlook mailObj = win32com.client.gencache.EnsureDispatch(%s.Application % app) mail =

Re: [python-win32] py2exe win32wnet - ImportError

2011-06-10 Thread Steffen Frömer
, On 06/09/2011 10:58 PM, Steffen Frömer wrote: Hello, i am having some trouble to include win32wnet library into my code. Using this inside python, all works fine. When i make executable using py2exe, i get ImportError on importing the module win32wnet. Have someone an idea? Regards, Steffen

[python-win32] py2exe win32wnet - ImportError

2011-06-09 Thread Steffen Frömer
Hello, i am having some trouble to include win32wnet library into my code. Using this inside python, all works fine. When i make executable using py2exe, i get ImportError on importing the module win32wnet. Have someone an idea? Regards, Steffen System: Windows7 Professional x86_64 Python