[python-win32] Need reviews for a patch in win32file for TransmitFile and ConnectEx

2008-05-15 Thread Roger Upole
One other thing, TransmitFile isn't checking the return value. It should probably do something like ConnectEx does, ie call WSAGetLastError and raise an exception for anything other than ERROR_IO_PENDING. Roger ___ python-win32 mailing list pyth

[python-win32] [OT] Anyone happen to know the system-wide limit of HANDLEs in Windows 2000 Server?

2008-05-15 Thread Trent Nelson
I'm debugging a weird/sporadic COM/ActiveX error with an application on a client's site that's recently been 'migrated' to Citrix Metaframe on Windows 2000 Server. I'm starting to think we may be hitting the system-wide limit for how many HANDLEs can be created across all processes every so oft

Re: [python-win32] Problem creating a shortcut

2008-05-15 Thread Mark Hammond
Tim wrote: > Plus, the "Program Files" path name is localized on > the international versions of Windows. Obviously Tim is correct that you can't assume FF is in Program Files, but if you really did want the Program Files dir for other reasons, the way to get it is: >>> from win32com.shell impor

Re: [python-win32] Problem creating a shortcut

2008-05-15 Thread Tim Roberts
Mike Driscoll wrote: I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. ... shortcut = shell.CreateShortCut(userDesktop + '\\MyShortcut.lnk') shortcut.Targetpat

[python-win32] Problem creating a shortcut

2008-05-15 Thread Roger Upole
Mike Driscoll wrote: Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of the shortcut, such as the

[python-win32] Problem creating a shortcut

2008-05-15 Thread Mike Driscoll
Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of the shortcut, such as the Working Directory and

Re: [python-win32] Attaching Menu to Any App

2008-05-15 Thread Tim Golden
Tim Roberts wrote: What *I* said was that it could NOT be done in pure Python, but I was expecting Mark Hammond or Tim Golden to contradict me in such a pessimistic statement. ;) I was trying to hold back from a tirade of pointing out how foolish an idea this was. Why is it that people (a) wa

Re: [python-win32] Attaching Menu to Any App

2008-05-15 Thread Tim Roberts
[EMAIL PROTECTED] wrote: Thanks for your answer. Yes, this is exactly what I want to acomplish. Application i'm working on is going to be called from that menu. Plan is to attach it automatically to some apps through running service or some process. This seems like a silly thing to do. Wha

Re: [python-win32] Will wmi can a command on remore host and get the return code

2008-05-15 Thread Mike Driscoll
siddhartha veedaluru wrote: Hi, i'm tring to execute a exe that is placed in the mapped network drive on remote machine it seems it is not getting recognised. How can i run the exe on the mapped network drive Thanks, Siddhartha I would use the subprocess module. import subprocess #

Re: [python-win32] python-win32 Digest, Vol 62, Issue 13

2008-05-15 Thread Tim Golden
siddhartha veedaluru wrote: Sorry about the confusing question. Your rewording is a lot clearer. Thanks. Here is what i want to achieve i have certain updates that i need to install on different machines These updates are placed in a location and is mapped to all the machines While I think

Re: [python-win32] python-win32 Digest, Vol 62, Issue 13

2008-05-15 Thread bob gailer
siddhartha veedaluru wrote: Hi, Sorry about the confusing question. Thank you. This feels a LOT better. Now we can help. Here is what i want to achieve i have certain updates that i need to install on different machines These updates are placed in a location and is mapped to all the mach

Re: [python-win32] Attaching Menu to Any App

2008-05-15 Thread otaeris
Hello Tim, Thanks for your answer. Yes, this is exactly what I want to acomplish. Application i'm working on is going to be called from that menu. Plan is to attach it automatically to some apps through running service or some process. I red a lot about hooking WinApi but I don't realy know C t

Re: [python-win32] python-win32 Digest, Vol 62, Issue 13

2008-05-15 Thread siddhartha veedaluru
Hi, Sorry about the confusing question. Here is what i want to achieve i have certain updates that i need to install on different machines These updates are placed in a location and is mapped to all the machines There will be an exe file say "InstallUpdate.exe" for every update. i need to run t

Re: [python-win32] Will wmi can a command on remore host and get the return code

2008-05-15 Thread Tim Golden
siddhartha veedaluru wrote: Hi, i'm tring to execute a exe that is placed in the mapped network drive on remote machine it seems it is not getting recognised. How can i run the exe on the mapped network drive Please post some code -- and any traceback -- so we can see what you're doing. Th

Re: [python-win32] Will wmi can a command on remore host and get the return code

2008-05-15 Thread bob gailer
siddhartha veedaluru wrote: Hi, i'm tring to execute a exe that is placed in the mapped network drive on remote machine it seems it is not getting recognised. How can i run the exe on the mapped network drive Aw come on I'd think by now you'd know how to ask a question. -- Bob Gail

Re: [python-win32] Will wmi can a command on remore host and get the return code

2008-05-15 Thread siddhartha veedaluru
Hi, i'm tring to execute a exe that is placed in the mapped network drive on remote machine it seems it is not getting recognised. How can i run the exe on the mapped network drive Thanks, Siddhartha ___ python-win32 mailing list python-win32@python.or