简体   繁体   中英

Getting the short cut name

I have one program, the exe is called main.exe. when main.exe is excuted. I allowed the user to be able to create a shortcut off main.exe. But when the user can create any name for the shortcut. so if the user is selecting the shortcut. I need the name of this short cut. not the program its pointing to

You can't getting the shortcut name from running exe. Application does not receive information about shortcut used to launch it.

You can use command line arguments and/or current working directory to configure your application (both can be set via properties of a shortcut).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM