I use this script for years and I
m very happy with it. Simply select a file or directory in Windows Explorer and copy its path to the clipboard directly from the context menu.
To install it, run a command shell as admin and call the script without an argument. After that it is installed and can be used from the context menu.
Grig Gheorghiu wrote on blogspot.com a howto for installing Python Scripts as Windows Services. It uses instsrv.exe and srvany.exe from the Win2K Ressource Kit.
The class I found on Activestate wraps most of the win32api functions for accessing a registry. It will read and write all win32 registry types, and will de/serialize python objects to registry keys when a string or integer representation is not possible:
I used this script to run a conversion service with Python on Windows. I stripped it down, so that others can use it for their needs.
Install the script from the windows shell:
>>python WindowsService.py install
And start it by:
>>python WindowsService.py start Continue reading “Windows Service with Python”
Some days ago I found a very easy pythonic way to show a VBA-like MessageBox. It was created with only one line of cpython code.
The code is very very easy. Simply change the last integer parameter to change the style of the message box.
msgbox = ctypes.windll.user32.MessageBoxA
ret = msgbox(None, 'Press OK to end the demo.', 'Deviare Python Demo', 0)