The subst command in Windows XP (and possible earlier versions), allows you to assign drive letters to directories on the local disk. This can be used to create shortcuts in Windows Explorer for directories you use often. For example let’s assume you have a C: drive, that has a directory called work\project\subproj\code. This is where you store your source code for the current project. Having to go to that directory every time you open Windows Explorer (WE) is a bit of a nuisance, especially because WE doesn’t remember where you were if you close and reopen it.
Some pictures of a trip to Foz do Iguacu on the Brasilian, Argentinian and Paraguyan border.
Sometimes you have to create loads of M$ Word documents, with only small changes in all of them. Given that we’re in the software business, it makes sense to automate this. As Python is a fantastic scripting language, we’lll use it in this article just to do that. The magic that makes this all happen is the Python Win32 Extensions module from Mark Hammond. This allows you to access COM (aka OLE, ActiveX or whatever the Microsoft marketing machine calls is these days) objects.
Copyright (c) 2024 Michel Hollands