Re: [python-win32] how to browse another computer's folder treestructure ?

2005-04-29 Thread Steve Holden
Michael Li wrote: Hi, Mark Thank you very much. It works, but only shows shared folders, not all the folders, is it possible to show all folders ? [...] Assuming you don't have permission to access administrative shares, what legitimate use case could there be for accessing non-shared materials on

Re: [python-win32] cleaning up after DDE client requests

2005-04-29 Thread Ray S
At 12:11 PM 4/28/2005, Jim McLoughlin wrote: >For a small number of requests, things are fine. However, a sequence of 1000 >requests seems to run into problems. So my question is: is there some clean >up code that can be used for conversations, servers, etc? Can I do something >like conversa

Re: [python-win32] Allowing service to interact with desktop

2005-04-29 Thread Rogelio Flores
On 12/8/04, Mark Hammond <[EMAIL PROTECTED]> wrote: > > Is there a way to set my python windows service to run witht the > > option "Allowing service to interact with desktop" turned on at > > installation time? I know how to enable it from the windows Services > > UI, but I'm hoping there is an op

Re: [python-win32] how to browse another computer's folder treestructure ?

2005-04-29 Thread Tim Roberts
On Thu, 28 Apr 2005 15:43:25 -0400, Michael Li <[EMAIL PROTECTED]> wrote: Hi, Mark Thank you very much. It works, but only shows shared folders, not all the folders, is it possible to show all folders ? Of course not. Windows security wouldn't be worth very much if it could. -- Tim Roberts, [EM

[python-win32] Infos on the python win32 build process

2005-04-29 Thread Markus Hillebrand
Hello out there! For a new release of the Python centered application-framework FreeGee (http://freegee.sf.net) I'm looking for informations (or scripts) upon the Python Win32 build process. My goal is to automize the build process including other open source packages (omniORB, postgresql, gnupg,

[python-win32] win32print.SetPrinter

2005-04-29 Thread Kelly Kranabetter
I'm trying to set the port of a printer (on Windows 98) but it fails if the devmode of the printer is NULL. Here is some sample code: h= win32print.OpenPrinter("Printername") settings= win32print.GetPrinter(h, 2) settings["pPortName"]= r"\\newserver\printer" win32print.SetPrinter(h, 2, settings,

[python-win32] Re: Infos on the python win32 build process

2005-04-29 Thread Roger Upole
You can use setup.py in the source distribution to do an automated build. For example, I use python.exe setup.py build --debug install to install a debug build of the extensions. Roger ___ Python-win32 mailing list [email protected] http://m

[python-win32] Re: win32print.SetPrinter

2005-04-29 Thread Roger Upole
Strange, the DEVMODE for a printer shouldn't be null if the driver is installed correctly. Although I guess it's possible this doesn't apply on Win98. You might be able to retrieve a DEVMODE to pass back in using DocumentProperties. Alternately, you can create a new one using pywintypes.DEVMODETy

RE: [python-win32] Allowing service to interact with desktop

2005-04-29 Thread Mark Hammond
> Actually, running python 2.0 and win32all-144.exe I don't see that: win32all-144 is *very* old. You are after the pywin32 builds - 204 is the latest. A service with that version of pywin32 supports: Usage: 'pipeTestService.py [options] install|update|remove|start [...]|stop|restart [...]|debu

[python-win32] How to use win32api.UpdateResource

2005-04-29 Thread cattom
I wanted to update some resource in an exe file, then I wrote some procedure like this: def updateStringTable... try: def win32_uc(text): return unicode(text, "unicode-escape").encode("utf-16-le") ruUpdateContent = win32_uc(updateCon