Getting the starting shortcut in c#

前端 未结 2 1874
慢半拍i
慢半拍i 2021-01-21 00:54

Lets say that I have an executable and when it is started I want to know how it\'s started. I.e. I would like to know if it is started with a shortcut or directly. With this:

2条回答
  •  粉色の甜心
    2021-01-21 01:01

    This won't work in general, but if you are creating the shortcut, you could add a command line parameter to identify it.

提交回复
热议问题