Hi Tony,
> I was trying to see if I could speed up processing huge files (in the 10's of
> Gigabytes) by passing various values to the readline() method of the file
> object.
We also work with large sized text files (we use Python for ETL jobs in
the 100-200 Gb range) and have n
Apparently retrieving the serial number of a USB memory stick is
much more complicated than one would think.
Is there a published Python recipe for determining a USB memory
stick's device level serial number under Windows and/or
Linux/Mac?
My Windows research follows my signature. Any fee
uot;):
print usb.PNPDeviceID
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Wondering if its possible to create Windows Shell Extensions
using pywin32 and if so, has anyone has tried to create a
QueryInfo type Windows Shell Extension?
I would like to create a Python equivalent of the simple InfoTip
described in this well written tutorial.
http://www.codeproject.com/KB
Any suggestions?
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
my google-mojo
is failing me.
Thank you,
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
an we had hoped.
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
OP here. When in doubt, read the (very well commented) wmi.py
source code :)
computerSystem = wmi.WMI().Win32_ComputerSystem()[0]
Sorry for the interuption.
Malcolm
- Original message -
From: pyt...@bdurham.com
To: python-win32@python.org
Date: Wed, 03 Mar 2010 21:01:19 -0500
Subject
ld I get a list of WMI properties like
.TotalPhysicalMemory without having to know each property ahead
of time.
Thank you,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
eers,
Malcolm
- Original message -
From: "Tim Golden"
To:
Cc: "zz Python Win32 Newsgroup"
Date: Thu, 04 Mar 2010 08:49:28 +
Subject: Re: [python-win32] How to enumerate a WMI object to discover
its properties?
On 04/03/2010 06:38, pyt...@bdurham.com wrote:
>
Hi Tim,
> Well I'm always glad to hear a positive comment on the
> source code, but there *is* some documentation:
>
> http://timgolden.me.uk/python/wmi/index.html
> http://timgolden.me.uk/python/wmi/tutorial.html
> http://timgolden.me.uk/python/wmi/cookbook.html
I re
lown away. Very nicely done. And very, very
helpful!!!
THANK YOU TIM!
Cheers,
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
d
look for battery properties, but I'm not sure that would allow me
to distinguish between a laptop and a server with an attached
UPS.
Any suggestions?
Thank you,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/m
would find a database for some of the machines we have.
I'm hoping that there's a WMI property that allows me to distinguish
between a laptop battery and an external UPS. (I've been looking, but my
google-fu is failing me).
Thanks for your help,
Regards,
Malcolm
__
Steve,
Those are some great ideas! I'll give it a shot and see what
works for us.
Thanks for your help,
Malcolm
- Original message -
From: "Steven James"
To: python-win32@python.org
Date: Sat, 6 Mar 2010 10:17:43 -0500
Subject: Re: [python-win32] Detect whether a w
-us/library/aa394587%28VS.85%29.aspx
Oddly enough, this function indicates that my laptop (new Sony
Vaio running Windows 7 Professional (64-bit) has no enclosure. :)
Well, its a start!
Thank you all for your ideas and help!
Malcolm
___
python-win32
__init__?
Here are my results from Python 2.6.4 (32-bit) run on a Sony Vaio
laptop with Windows 7 Professional (64-bit):
>>> import wmi
>>> c = wmi.WMI().Win32_SystemEnclosure
>>> c
<_wmi_class: \\SONYLAPTOP-01\ROOT\cimv2:Win32_SystemEnclosure&g
r me with the ***c.Win32_SystemEnclosure class***.
> And likewise for the battery class
No. The battery class appears to really return no information.
Here's my updated battery code:
import wmi
c = wmi.WMI()
for battery in c.Win32_PortableBattery():
print battery
This code doesn
ttery class is for machines with advanced power supply
management capabilities.
Thank you for your help!
Regards,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
>> I suspect the win32_PortableBattery class is for machines with advanced
>> power supply management capabilities.
> Obviously it's for machines that have a *wireless* battery.
:)
Now you tell me!
Malcolm
___
python-win32 maili
I'm looking for simple ways to monitor and limit the number of
instances of our Python application that gets run on our in-house
Terminal Servers (2003 and 2008).
The purpose of this restriction is to make sure we don't overload
our servers. This is an internal administrative requirem
there may be no such thing as Global (that are visible across user
sessions) semaphores and mutex's.
So I'm back to thinking about your PID file idea :)
Regards,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Greg,
Very clever! Thank you,
Malcolm
- Original message -
From: "Greg Ewing"
To: "zz Python Win32 Newsgroup"
Date: Sat, 13 Mar 2010 00:15:19 +1300
Subject: Re: [python-win32] Technique to limit number of instances of
our application under Terminal Server
Her
ocess is holding a
resource or not, eg. they consistently get released when a
process terminates abnormally.
- Original message -
From: "Mark Hammond"
To: pyt...@bdurham.com
Cc: "Tim Golden" , "zz Python Win32 Newsgroup"
Date: Thu, 11 Mar 2010 12:52:43 +110
exes.
Thanks for your feedback,
Mal
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
From: "Tim Golden"
To:
Cc: "zz Python Win32 Newsgroup"
Date: Thu, 11 Mar 2010 15:31:22 +
Subject: Re: [python-win32] Technique to limit number of instances of
our application under Terminal Server
On 10/03/2010 21:16, pyt...@bdurham.com wrote:
> Hi Tim,
>
>
be suprised how many times our apps
get abnormally terminated so we do need a fairly accurate way to
track running instances or the entire process is not worth
pursuing.
Regards,
Malcolm
- Original message -
From: "Christopher Nilsson"
To: "Tim Golden"
Cc: "zz Py
y different than managing a pool of mutex's? I haven't
tried it yet, but intuitively I would think that a pool of mutex's would
be faster to iterate through and more resource efficient?
Regards,
Malcolm
- Original message -
From: "Tim Golden"
To:
Cc: "z
ges for a general purpose reusable
PY2EXE runtime'. This post got zero feedback so our idea is either too
stupid or too obvious to warrant further conversation :)
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
f modules.
Good catch!
Thank you,
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Werner,
I'm not sure I understand the benefit of being locked into the
proprietary and awkward MAPI protocol?
Why can't you use industry standard SMTP to send your messages? Simpler
and more portable.
Malcolm
- Original message -
From: "Werner F. Bruhin"
To: pyt
een sent.
We solved the configuration issues by posting to a PHP form that in turn
sends out our emails.
We solved the record/archive concern by bcc-ing the customer's email
with a copy of what was being sent.
Malcolm
_______
python-win32 mailing list
Is there a Windows API call I can use to display a BMP or a PNG
file in a window centered on a user's display? This function
would be called from a console app to display a splash screen.
Motivation: I would like some of our customer facing Python
console utilities to display a splash scre
ature like a splash screen.
Regards,
Malcolm
- Original message -
From: "Tony Cappellini"
To: python-win32@python.org
Cc: pyt...@bdurham.com
Date: Mon, 22 Mar 2010 15:47:47 -0700
Subject: Re:Win API call to display a BMP/PNG file as a splash
screen for a console ap
Any suggestions on how I can have a Python script detect when its
operating system is shutting down or a user is logging out?
The script in question is a local web server (based on CherryPy).
Thank you,
Malcolm
___
python-win32 mailing list
python
Vineet,
> > Till now, I have been programming with VFP & MySQL.
Check out dabodev.org.
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
7;file_locked.tmp'
unittest_file_locked = open( UNITTEST_FILE_LOCKED, 'w' )
UNITTEST_UNICODE_PATH= ur'\xunicode_test_\xb0_\xb1_'
Thank you,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
pdate an
exe's file properties using an external resource file?
Or would I be better off finding a Windows utility that might
allow me to script exe resource file updates?
Thank you,
Malcolm
_______
python-win32 mailing list
python-win32@pytho
I know there is a simple interface to the Windows messagebox
interface.
Is there an equivalent type of simple dialog box for showing a
progressbar or progressbar-like information?
Use case: I have a collection of Python command line utilties
that can take up to several minutes to run. These are
Tim,
> If you look in site-packages\pythonwin\pywin\Demos, you'll find
> "progressbar.py". This is a Python wrapper around the MFC CProgressCtrl
> class. You might be able to adapt that to do what you need, although I'm not
> sure MFC is any lighter weight than
Tony,
>Try Easy Dialogs
> http://www.averdevelopment.com/python/EasyDialogs.html
>
> It has a progress bar. Easy Dialogs just wraps the native OS calls, and makes
> them sensible & cross platform.
>
> Using a progress bar is only a few lines of code.
Thanks for this r
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Eric,
The short answer (for people searching the archives) is that the
cursor='@\path\to\cursor_file.cur' technique DOES work exactly as
advertised ... when used in a script run outside of IDLE (I know,
I know ... never test Tkinter code in IDLE!).
> Did you try it?
Yes. Running P
d that, but from within IDLE (Python 2.7) this syntax raises
an exception. Using this technique in scripts running from the
command line (outside of IDLE) works well.
Malcolm
References
1. http://wiki.tcl.tk/8674
___
python-win32 mailing list
python-win32
n the pros
and cons of this technique vs. a strategy that proactively pumps
waiting messages.
Malcolm
[1]
http://mail.python.org/pipermail/python-win32/2005-October/003920
.html
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.o
would like to keep).
Thank you,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
ove the window's border and
titlebar (both of which I would like to keep).
References
1. mailto:pyt...@bdurham.com
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
s,
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
ith a simple polling
technique that I should be aware of?
Thank you,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Tim, Ben and Brian,
Thank you all for your posts - excellent information(!!!).
You have all answered my question.
Cheers,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Anthony,
Dabo (dabodev.com) is an open source GUI framework built on top of
wxPython.
Dabo has a very impressive report writer.
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
Andrew,
Thanks for sharing the solution!
Regards,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
e the priority of a
running process, or can the priority of a Windows process only be
set when the process is launched?
Thanks,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
What about logging to a database?
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
tamps and file sizes for the above files.
Background; 64-bit Windows 7; 32-bit Python 2.7.2
Any ideas on how I can retrieve timestamps and file sizes like
DIR without raising exceptions?
Thank you,
Malcolm
___
python-win32 mailing list
python-w
>> For reference, this is the kind of pattern I use when writing Windows
>> Services in Python:
> This is incredibly useful. Thank you.
+1
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/
ile to desktop
4: decompress file
step 3 and 4 is to develop a socket with python
5: print it on lokal printer => solved
What do you think about it. I think of sockets because step 4 should be done
automatically when the file arrives at the workstation. Otherwise I have to
check a directory on the workst
Hello Jens, hello all,
thanks for your replay. I tried your solution first and get some errors.
Independing of the size in socket.recv and f.read I allways get an empty
datastring after 1770 bytes. But I found a similiar solution here
http://mail.python.org/pipermail/python-list/2002-July/111754
ocess fails if python
is not installed on that machine. I have to install this service on a users
computer without python. Normally I run Gordon McMillans Installer and ship the
exe-file to the users computer. Is there a way to register the pythonservice
without installing python, or run the se
ow can I pass values from the thread function to the
main thread ?
regards,
Jürgen
-
This mail sent through IMP: http://horde.org/imp/
___
Python-win32 mailing list
Python-win32@python.org
http://mai
problem. Don't know how to solve :-(
regards,
Jürgen
-
This mail sent through IMP: http://horde.org/imp/
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
e FetchData
>function.
>That's the whole problem. Don't know how to solve :-(
>regards,
>Jürgen
-----
This mail sent through IMP: http://horde.org/imp/
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
il sent through IMP: http://horde.org/imp/
_______
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
to set the address type of
that dl to 'MAPIPDL', but I'm lacking the permissions - crazy, crazy
regards,
Jürgen
-
This mail sent through IMP: http://horde.org/imp/
___
Python-win32 maili
Versandt durch den Webmaildienst der LDC GmbH Bonn
___
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
if you have the same issues with the code Roger posted ?
Thanks,
Jürgen
-
Versandt durch den Webmaildienst der LDC GmbH Bonn
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mail
Antony,
If you're just trying to hide the console Window, rename your python
script with a *.pyw file extension or launch it via pythonw.exe vs.
python.exe.
I have no idea how to have a Python application display an icon in the
System Tray (vs. Taskbar). That's a very interestin
available on real-world 'locked-down' corporate
workstations.
Thank you,
Malcolm
___
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
s,
Malcolm
_______
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
the core of this
reference. Use "copy and paste" and try them now. Sometimes a line of
code is worth a dozen of pages and hours of online searching.
http://news2news.com/vfp/index.php
Malcolm
_______
python-win32 mailing list
python-win
Anyone know of a way to have a Python script capture its own Task
Manager statistics?
I have a long running Python script whose CPU, memory, disk i/o, and
network traffic I would like to monitor.
An alternative more generic approach would be to run an 'observer'
script that would m
I just got a 64bit laptop and install python 2.7.2 (Windows AMD64 / Intel 64
/ X86-64 binary) and other packages. When i run the previous file, I find to
import win32com.client bc the program needs to read a word document as
follows:
app = win32com.client.gencache.EnsureDispatch
Thanks for the reply. I removed the Softwares and reinstall them with 32bit
again. But I have
the following questions:
1. When installing xlutils1.4.1.win32, I got the following errors:
couldn't create key for
i) xlutils-py2.7; ii) python 2.7 xltuils-1.4.1
Then I got the error "Couldn
I got python from:
www.python.org/download
and choose
•Python 2.7.2 Windows Installer (Windows binary -- does not include source)
It should be a good version too, right? What I did is to remove all the
64bit
versions and reinstall these software systems for win32. Thanks in advance.
Bill
Hi All,
I searched for this but couldn't find it anywhere: I've just started
running Python in Classic ASP, and would like to Response.Flush
periodically on a page with a lot of processing behind it.
However, it seems to have no effect. I confirmed that Response.Buffer =
Any hint or sample code on how to implement DDE Poke ?
Thanks, Jon.
(*) Based on
http://www.google.com/codesearch/p?hl=es#OAMlx_jo-ck/tools/third_party/python_26/Lib/site-packages/win32/Demos/dde/ddeserver.py&q=dde%20lang:python&sa=N&cd=1&ct=rc
______
Hello,Iam trying to send an email through outlook 2010 on a win 7 64 bit oswith
python 2.7 32 bit and win32com 32 bit. I am using the same codeexample found in
many Google search results. This chunk of code willrun fine if I rem out the
attachment, but once I try adding theattachment, I get an
I ahve been trying to communicate with an Instrument GUI using python and a
COM Object. This is quite simple using wincom32, but somethind with this
client required additional extension not needed in other lunguages. I wander
id someone here has experience and can explain how to solve this.in VBS
Hello. Sorry if this is the wrong place to ask my question.
I am trying to open a memory mapped file using Python. I originally used the
"mmap" module from Python however I had issues with it because I had to use a
fixed size for the file even though my goal was to open an existi
are a pain to work
with, and of course don't work at all on other systems.
_______
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
_______
python-win
On 12/1/2021 3:07 AM, Tim Roberts wrote:
On 11/30/21 7:04 AM, gw1500 via python-win32 wrote:
Thanks for the reply. I read about that but was hoping to use
pywin32. I can see now the folly of that decision.
I have a working minimal test but am looking for something a bit more
automated. I
rmats:
formats.append(standard_formats[format])
else:
formats.append(
win32clipboard.GetClipboardFormatName(format) )
finally:
win32clipboard.CloseClipboard()
return formats
___
python-win32 mailin
I've had my challenges with 3.10 and stayed on 3.9, with good results.
Sent from Android
On Tue, Oct 11, 2022 at 11:00,
python-win32-requ...@python.org wrote: Send
python-win32 mailing list submissions to
python-win32@python.org
To subscribe or unsubscribe via the World Wid
event
import servicemanager
import socket
import time
import os
import sys
class MyService(win32serviceutil.ServiceFramework):
_svc_name_ = 'MyPythonService'
_svc_display_name_ = 'My Python Service'
_svc_description_ = 'This is a sample Python
features.
Right now I can createobject() and getobject() in python using the new
namespaces.
Experimenting with using this for app automation similar to the microsoft
script control and its addobject functionality.
Bringing the COM code into my helper dll to see if I can get around not being
able
ey = LCase(StringFromPointer(buf))
Set o = SharedObjects(key)
If Not o Is Nothing Then
HostResolver = ObjPtr(o)
Else
HostResolver = 0
End If
End Function
_______
python-win32 mailing list
python-win32@python.org
htt
rm1.caption = "test"
form1.Move(0)
Set List1 = GetObject("PyComTest.List1")
List1.AddItem "***** VBS SAYS HELLO ***"
Currently using a vb6 standard exe manually adding objects to the ROT, and
python 311 exe to run the
lation of the client? Or am I looking in the wrong direction?
Thank you & Best Regards
ioannis
___
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32
App.Workbooks.Add() #Create a workbook
ws=xlwb.Sheets("Sheet1") #Get the first worksheet
xl_events=win32.WithEvents(xlwb,wbEvents) #Add and Event handler
# define initalizer
keepOpen = True
while keepOpen:
time.sleep(0.1)
pythoncom.PumpWaitingMessages()
-------- Code2 End
would alway be increased.
It seems, püywin32 has some special support for list comprehension and
index adjustment for COM objects?
I haven't worked with an iterator before but is this the solution?
Thanks in advance.
Best
Christoph
_______
issue at https://github.com/mhammond/pywin32 since
it shouldn't break that way.
Cheers
On 2025-04-18 8:33 p.m., dornech via python-win32 wrote:
Hi there,
I am working on an EXCEL wrapper to "phytonize" access to EXCEL.
I create a wrapper class for all objects classes derived fr
Hi
We are looking for a PYTHON DEVELOPER with 3+ years Exp. ·
Strong in Python· Django framework· Good at Rest API·
Decent communication skills· 3+ Years’ experience· Full time –
Immediate Joinee Job Location
and vice versa. They
are synonyms.
On Sun, Oct 25, 2015 at 11:24 PM eryksun wrote:
> On 10/25/15, Laura Creighton wrote:
> >
> > Can I suggest a mailing list name change to reflect 64 bit windows?
> > python-windows would be my suggestion ....
>
> I agree. This list is
Two questions:
1) Are you embedding this extension in your own application or do you only
need to be able to load it into a stock Python distribution?
2) Is Python 3.5 out of the question?
On Wed, Nov 4, 2015 at 5:10 PM Ken Brooks wrote:
> I have joined this list because I need to learn how
Why do you need to use Python? Sounds like this is done very easily with
Spy++
On Sun, Feb 7, 2016 at 10:12 AM Ram Rachum wrote:
> Hi everybody,
>
> There's a problem in my Windows 7 machine that I want to diagnose using
> Python.
>
> Once in a while, I'm noticin
6 at 10:39 PM, Zachary Turner
> wrote:
>
>> Why do you need to use Python? Sounds like this is done very easily with
>> Spy++
>>
>> On Sun, Feb 7, 2016 at 10:12 AM Ram Rachum wrote:
>>
>>> Hi everybody,
>>>
>>> There's a problem in
It's included as part of Visual Studio. Download community edition, it
should be there.
On Mon, Feb 8, 2016 at 7:33 PM reckoner wrote:
>
> Where can I safely download this Spy program you are all talking about?
>
> Thanks!
>
>
>
> On 2/8/2016 9:00 AM, python-w
Hi all,
I am a relatively new user of pywin32 package, but not Python. I have an
application (written in C/#, as I understand) that provides a COM
interface for using with other languages such as Python. I am using the
pywin32 library to communicate with the application and it works fairly
For anybody who might be interested this is a podcast featuring Steve
Dower from Microsoft
https://talkpython.fm/episodes/show/53/python-in-visual-studio
--
My fellow Pythonistas, ask not what our language can do for you, ask
what you can do for our language.
Mark Lawrence
The debugger is good too. I don't know of any other tool that lets you
seamlessly step between Python and native code when debugging a program
which embeds Python
On Sat, Apr 16, 2016 at 5:23 PM Alexander Walters
wrote:
> As a total aside, PTVS (part of the base VS 2015 install, IIRC
1 - 100 of 164 matches
Mail list logo