Re: [python-win32] detect mapped network path

2005-06-30 Thread Simon Dahlbacka
On 7/1/05, Mark Hammond <[EMAIL PROTECTED]> wrote: > > ..but how do i find out if let's say X:\foo\bar\blarg.baz is a local > > path or in fact a mapped network path? > > win32api.GetLogicalDriveStrings() may also help. I was going to say that it does not help, but then I found win32file.GetDrive

Re: [python-win32] detect mapped network path

2005-06-30 Thread Mark Hammond
> ..but how do i find out if let's say X:\foo\bar\blarg.baz is a local > path or in fact a mapped network path? win32api.GetLogicalDriveStrings() may also help. Mark ___ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/l

Re: [python-win32] EasyDialogs - how to set initial path

2005-06-30 Thread Jimmy Retzlaff
John Machin wrote: > > Radovan Grznarik wrote: > > >Hi, > > > >I am using EasyDialogs (AskFileForOpen) and I am not able to set the > >initial open path. I found in Python help > > > Python help describes the *Mac* version; EasyDialogs for Windows by > Jimmy Retzlaff has slightly different argume

Re: [python-win32] LsaLookupNames2

2005-06-30 Thread Schollnick, Benjamin
Thomas, Figured out a relatively simple way to deal with this TypeLib issue regarding Win XP & Win 2000 1) I created a py2exe "bundle" on a Windows 2000 system... 2) Since the Typelib issue was specific to win32com, I removed all NON win32com f

[python-win32] Outlook COM: how to create a MailItem from a .msg file

2005-06-30 Thread guy lateur
Hi all,   I've been writing some code to move some data into and out of Outlook (2003 + Exchange 2003). I have some email .msg files on our file server, and I can't seem to get them back into the Outlook object I need, ie a MailItem. I've tried to use App.CopyFile() to (temporarily) put th

Re: [python-win32] EasyDialogs - how to set initial path

2005-06-30 Thread John Machin
Radovan Grznarik wrote: >Thank you very much, I was so close, it's the 4th one:))) >Next time before the question I will look at the code. > >now it works >filename = EasyDialogs.AskFileForOpen("","","","d:\\") > > Bletch. Try this: filename = EasyDialogs.AskFileForOpen(defaultLocation="d:\\")

Re: [python-win32] EasyDialogs - how to set initial path

2005-06-30 Thread Radovan Grznarik
Thank you very much, I was so close, it's the 4th one:))) Next time before the question I will look at the code. now it works filename = EasyDialogs.AskFileForOpen("","","","d:\\") On 6/30/05, John Machin <[EMAIL PROTECTED]> wrote: > Radovan Grznarik wrote: > > >Hi, > > > >I am using EasyDialog

Re: [python-win32] Unable to set an Excel chart's titl ethrough win32com : can you reproduce this problem ?

2005-06-30 Thread eric . powell
This worked for me.the first function is called to create the copy, the second to format and rename it. def create_graph (filename,graph):     #instatiate the Excel object     xl = win32com.client.Dispatch("Excel.Application")     #Open the workbook     wb = xl.Workbooks.Open (filename)    

Re: [python-win32] EasyDialogs - how to set initial path

2005-06-30 Thread John Machin
Radovan Grznarik wrote: >Hi, > >I am using EasyDialogs (AskFileForOpen) and I am not able to set the >initial open path. I found in Python help > Python help describes the *Mac* version; EasyDialogs for Windows by Jimmy Retzlaff has slightly different arguments; there is a readme.txt in .\si

Re: [python-win32] detect mapped network path

2005-06-30 Thread Tim Golden
| [Simon Dahlbacka] | | | | On 6/30/05, Tim Golden <[EMAIL PROTECTED]> wrote: | | > [Simon Dahlbacka] | | > | I'm having trouble with the fact that | | > | win32file.FindFirstChangeNotification seems to not like | | network paths. | | > | | > I don't quite understand why this is happening, but t

Re: [python-win32] detect mapped network path

2005-06-30 Thread Tim Golden
[Simon Dahlbacka] | | On 6/30/05, Tim Golden <[EMAIL PROTECTED]> wrote: | > [Simon Dahlbacka] | > | I'm having trouble with the fact that | > | win32file.FindFirstChangeNotification seems to not like | network paths. | > | > I don't quite understand why this is happening, but to | > answer your

Re: [python-win32] detect mapped network path

2005-06-30 Thread Simon Dahlbacka
On 6/30/05, Tim Golden <[EMAIL PROTECTED]> wrote: > [Simon Dahlbacka] > | I'm having trouble with the fact that > | win32file.FindFirstChangeNotification seems to not like network paths. > | (Or at least that is what I concluded after getting the following > | traceback) > | > | Traceback (most rec

Re: [python-win32] detect mapped network path

2005-06-30 Thread Tim Golden
[Simon Dahlbacka] | I'm having trouble with the fact that | win32file.FindFirstChangeNotification seems to not like network paths. | (Or at least that is what I concluded after getting the following | traceback) | | Traceback (most recent call last): | File "C:\Python23\lib\threading.py", line 4

[python-win32] Outlook COM: how to create a MailItem from a .msg file

2005-06-30 Thread Guy Lateur
Hi all,   I've been writing some code to move some data into and out of Outlook (2003 + Exchange 2003). I have some email .msg files on our file server, and I can't seem to get them back into the Outlook object I need, ie a MailItem. I've tried to use App.CopyFile() to (temporarily) put th

[python-win32] EasyDialogs - how to set initial path

2005-06-30 Thread Radovan Grznarik
Hi, I am using EasyDialogs (AskFileForOpen) and I am not able to set the initial open path. I found in Python help that it should be 3rd parameter, then I tried this filename = EasyDialogs.AskFileForOpen("title","*.*","d:\\") but it does not work, and opens dialog in actual directory of running

[python-win32] detect mapped network path

2005-06-30 Thread Simon Dahlbacka
Hi, I'm having trouble with the fact that win32file.FindFirstChangeNotification seems to not like network paths. (Or at least that is what I concluded after getting the following traceback) Traceback (most recent call last): File "C:\Python23\lib\threading.py", line 436, in __bootstrap self