From: Martin (gzlist) <gz...@go...> - 2009-09-30 00:46:11
|
Attached is a patch that adds the IShellLinkDataList interface to comtypes.shelllink and a couple of structures that can be used to change the settings of the console when the link is targetting cmd. Run into some problem trying to create a comtypes/test/test_shelllink.py to cover this. I wanted to do something clever with subprocess, but: # Running a .lnk precludes piping output from the subprocess, so the shortcut would have to record its own results. # Even that's no good for testing the console data block additions, as the settings of the cmd instance needed to run the .lnk override the properties set on the shortcut. If there's a way to run the shortcut without going through cmd that method might be okay. For the moment I wrote a few random tests that mostly just poke the interfaces a bit and serve as a demonstration. Suggestions for improvements welcome. Martin |