Get invoking shortcut
Need to retrieve the path of an invoking shortcut.
This is a Q开发者_C百科t application, but I suspect I'm going to have to go native to do this, primarily on win. I can come up with a scheme for Mac..
Is there a way to get this? The win terminal application seems to be able to do this, for instance.
(it needs to work for a moved shortcut, so I can't embed the path in an arg.)
When a process is started, there is no information passed that identifies the shortcut that was used to invoke the new process. You need to use command-line arguments to pass startup parameters to the new process.
精彩评论