Home | Notifications | New Note | Local | Federated | Search | Logout

Note Detail


Mathias Panzenböck@bloody_albatross@chaos.social (2026-09-23 02:45:53)
Hacky #Python script to create a shortcut (.lnk file) under #Windows without any extra dependencies. This uses ctypes and ole32.dll. An alternative is to write out a #VBScript that does the same and run it with cscript, but that is deprecated and will be removed from Windows! Any feedback is welcome. I have only tested it with #wine in a #Blender add-on, I don't have actual Windows. Sometimes it crashed Blender after creating the shortcut. 🤷‍♂️ https://gist.github.com/panzi/ccf40ff940f0e933e05375a5b698fad5 #programming
Reply