A very small example to convert Microsoft Word files to text files. A full featured batchconverter can be found at Homepage of doc2txt
app = win32com.client.Dispatch('Word.Application')
doc = app.Documents.Open('c:\\files\\mydocument.doc')
This script watches for activity at the installed printers and writes a logfile. It shows how much a user has printed on wich printer (works also with network printers).
But it has a proplem with counting the right amount of printed pages 🙁
It uses the wmi-class from Tim Golden, which you can download from his webpages. Please put the wmi.py in the same directory where you run this script from.
c = wmi.WMI ()
print_job_watcher = c.watch_for (
pj = print_job_watcher ()
print "User %s has submitted %d pages to printer %s" % \
(pj.Owner, pj.TotalPages, pj.Name)
With “startCommand” one can start userdefined commands in the same
way as you type the command in the command prompt in CATIA V5.
print "Oops PYwin32 from Marc Hammond needed"
catapp = win32com.client.Dispatch("CATIA.application")
#Attention: runs only if you have set TOOLS/CUSTOMIZE/OPTIONS to Englisch.
#Starts the "File open"-Menu
# Runs the Online-Help (Strg+F1)
# Compass visible
# Compass invisible