Re: [python-win32] Excel Calculation - Check when it's done

2009-08-27 Thread Bilokon, Paul
Hi Tim, Many thanks for your reply! Best wishes, Paul -Original Message- From: python-win32-bounces+paul.bilokon=citi@python.org [mailto:python-win32-bounces+paul.bilokon=citi@python.org] On Behalf Of Tim Roberts Sent: 26 August 2009 23:06 To: Python-Win32 List Subject: Re:

[python-win32] [Fwd: Re: Running the COM MakePy Utility from python]

2009-08-27 Thread Grant Paton-Simpson
Hi Harald, I managed to make a file containing everything I needed. NB the command is makepy.py not makepy. There was, however, an issue with genpy.py asserting there had to be a self.file.encoding even though I couldn't see where that was set. I temporarily commented that assert out. File

Re: [python-win32] Running the COM MakePy Utility from python

2009-08-27 Thread Massa, Harald Armin
Grant, that is possible. Just read the makepy.py script within win32com.client, and you will find that someway down main() there is - GenerateFromTypeLibSpec(arg, f, verboseLevel = verboseLevel, bForDemand = bForDemand, bBuildHidden = hiddenSpec) - which does this. BUT, for

[python-win32] Find IP address for a UNC path

2009-08-27 Thread Dave Angel
I'd like to be able to figure out the IP address for a Windows XP file server (on a local subnet, not across the Internet), based on a successfully connected share. So I know the UNC name of the share, for example \\server\sharename\... (which was enabled by a NET USE to some other share

Re: [python-win32] [Fwd: Re: Running the COM MakePy Utility from python]

2009-08-27 Thread Massa, Harald Armin
Grant, for your problems with the assertion there is a patch... - --- in Version 213 of pywin32 within win32com\client\genpy.py on line 814, within def do_gen_file_header(self): there is the assertion:

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Dahlstrom, Roger
Ping it and get the address. -Original Message- From: python-win32-bounces+rdahlstrom=directedge@python.org [mailto:python-win32-bounces+rdahlstrom=directedge@python.org] On Behalf Of Dave Angel Sent: Thursday, August 27, 2009 4:52 AM To: Python-Win32 List Subject:

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Gerdus van Zyl
I would say try socket.gethostbyname; http://docs.python.org/library/socket.html#socket.gethostbyname On Thu, Aug 27, 2009 at 2:59 PM, Dahlstrom, Rogerrdahlst...@directedge.com wrote: Ping it and get the address. -Original Message- From:

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Steven James
I think the bigger issue is being passed over...why write a program to do what RDP should already be able to do? RDP should work by machine name. If it does not, then DNS probably is not set up correctly. Are you, by any chance, using OpenDNS as your DNS servers? Does your router support DHCP

Re: [python-win32] [Fwd: Re: Running the COM MakePy Utility from python]

2009-08-27 Thread Vernon Cole
Grant: ( I read your new source code before commenting ... NICE PROJECT ! insert back patting here ) The constants you are using here are hard-coded into adodbapi, therefore adodbapi.adTinyInt has the same value as adTinyInt in your dbe_globals.py and win32com.client.constants.adTinyInt I

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Tim Roberts
Dave Angel wrote: I'd like to be able to figure out the IP address for a Windows XP file server (on a local subnet, not across the Internet), based on a successfully connected share. So I know the UNC name of the share, for example \\server\sharename\... (which was enabled by a NET USE

Re: [python-win32] [Fwd: Re: Running the COM MakePy Utility from python]

2009-08-27 Thread Tim Roberts
Grant Paton-Simpson wrote: I managed to make a file containing everything I needed. NB the command is makepy.py not makepy. Let me give you a little hint. Go into your environment variables, edit the PATHEXT variable, and add .py and .pyw to the extensions so it looks something like this:

Re: [python-win32] Find IP address for a UNC path

2009-08-27 Thread Dave Angel
I'll try PING when I next get to the location. Steven James wrote: I think the bigger issue is being passed over...why write a program to do what RDP should already be able to do? RDP should work by machine name. If it does not, then DNS probably is not set up correctly. I don't know why

Re: [python-win32] [Fwd: Re: Running the COM MakePy Utility from python]

2009-08-27 Thread Mark Hammond
Look for the win32com.client.gencache module - it exposes a number of functions (EnsureDispatch, EnsureModule etc) designed simply to avoid the requirement to explicitly run makepy before using an object. Cheers, Mark On 27/08/2009 9:51 PM, Grant Paton-Simpson wrote: Hi Harald, I managed