执行添加到快捷方式目标的命令

Implement command that added in shortcut target

我正在制作这个依赖快捷命令的小程序,例如:

"D:\Games\Counter Strike 1.6\hl.exe" -game cstrike 

在快捷方式目标中添加了“-game cstrike”,hl.exe 不会 运行 就像没有该命令一样。那么我将如何发出这样的特殊命令呢?我无法用简短的词来解释这个问题,所以我不能 google 它。

你可以google的短词"Console Application Command Argument."

希望能帮到你 link:

How do I use command line arguments in my C# console app?