Re: [python-win32] How do I detect a 64 bit version of Windows?

2012-02-20 Thread Gelonida N
Thanks Mark, On 02/20/2012 03:28 AM, Marc Hankin wrote: Dear Gelonida: The following is a vbscript that will return the info you want. You might want to run it in a python subprocess. On Error Resume Next ' -- SCRIPT CONFIGURATION -- strComputer = . ' e.g. rallen-srv01

Re: [python-win32] Getting Remote Share User Group Names and Permissions

2012-02-20 Thread Tim Golden
On 18/02/2012 23:22, Rod Person wrote: On Fri, 17 Feb 2012 20:20:09 + Tim Goldenm...@timgolden.me.uk wrote: On 17/02/2012 18:26, Rod Person wrote: import win32security as win32s sd = win32s.GetFileSecurity(sh,win32security.GROUP_SECURITY_INFORMATION) Assuming that sh here is the name

Re: [python-win32] Getting Remote Share User Group Names and Permissions

2012-02-20 Thread Rod Person
On Mon, 20 Feb 2012 11:53:46 + Tim Golden m...@timgolden.me.uk wrote: Let's see. I think where we're at is this: you have a number of shares on server1 (sharea, shareb) which you wish to set up on server2 so that, in effect, the same users can access them in the same way. (And, if you

[python-win32] COM-interfaces in python

2012-02-20 Thread Rafael Yengibaryan
Hi all. I need some COM-interfaces for virtual disk service(VDS) that are not supported by standard win32com package. Which are the ways to be able to use these interfaces in python code? ___ python-win32 mailing list python-win32@python.org

Re: [python-win32] [ANN] pywin32 build 217 released.

2012-02-20 Thread etienne . labaume
For initial support (eg, to ask questions about the release etc), please contact this mailing-list (python-win32@python.org). If you want to report a bug, please do so at https://sf.net/projects/pywin32. Hello Mark, I don't know if this is the best way to let you know, but I have updated

[python-win32] Python-based Windows service: Subcommand works with debug, but hangs under start

2012-02-20 Thread Jens Vagelpohl
Hi all, I've written a Windows service based on win32serviceutil.ServiceFramework. The service per se is running just fine. I am testing it on Windows Server 2003. When starting, the service uses the win32process.CreateProcess to start a process: win32process.CreateProcess(None, CMDLINE,

Re: [python-win32] Python-based Windows service: Subcommand works with debug, but hangs under start

2012-02-20 Thread Jens Vagelpohl
Hi Preston, Offhand it sounds like a authorization related issue. Have you tried checking the current user identity / authorization from within the child processes? Not yet. The service itself is run without specific credentials. Is there a reason you're calling CreateProcess directly to

Re: [python-win32] Getting Remote Share User Group Names and Permissions

2012-02-20 Thread Rod Person
On Mon, 20 Feb 2012 11:53:46 + Tim Golden m...@timgolden.me.uk wrote: code import win32net def shares (system): share_infos, total, hResume = win32net.NetShareEnum (system, 2, 0) for share_info in share_infos: if share_info['type'] == 0: yield share_info while

Re: [python-win32] [ANN] pywin32 build 217 released.

2012-02-20 Thread Luc Kesters
Hello Mark, I installed the new pywin32. I don't have a problem with pywin32 itself. But when importing other packages (the ones I mentioned) I still have the problem (see below) When I read the issues (see first message) it seemed to me a python problem and not a pywin32 problem. If I

Re: [python-win32] [ANN] pywin32 build 217 released.

2012-02-20 Thread Mark Hammond
On 21/02/2012 9:05 AM, Luc Kesters wrote: Hello Mark, I installed the new pywin32. I don't have a problem with pywin32 itself. But when importing other packages (the ones I mentioned) I still have the problem (see below) When I read the issues (see first message) it seemed to me a python

Re: [python-win32] [ANN] pywin32 build 217 released.

2012-02-20 Thread Mark Hammond
On 21/02/2012 2:02 AM, etienne.laba...@free.fr wrote: For initial support (eg, to ask questions about the release etc), please contact this mailing-list (python-win32@python.org). If you want to report a bug, please do so at https://sf.net/projects/pywin32. Hello Mark, I don't know if this

Re: [python-win32] COM-interfaces in python

2012-02-20 Thread Mark Hammond
On 21/02/2012 12:18 AM, Rafael Yengibaryan wrote: Hi all. I need some COM-interfaces for virtual disk service(VDS) that are not supported by standard win32com package. Which are the ways to be able to use these interfaces in python code? If they are interfaces not supported via IDispatch,

Re: [python-win32] Python-based Windows service: Subcommand works with debug, but hangs under start

2012-02-20 Thread Mark Hammond
I guess it depends on what that child process does. Services run on a different desktop, so any UI (eg, message box or similar) or attempts to read from stdin etc will make it appear to have hung. Using a windows debugger (or even process explorer from the MS SysInternals team) might give