使用不同的.INI配置运行两个不同的.EXE文件的变体
我正在使用Windows 10中的程序(ABC.EXE)合作,我想知道是否有可能创建同一ABC.EXE文件的两个不同的变体(快捷方式),每个文件都可以使用不同的.ini配置。
1. config1 - at path C:/abc/config1.ini
2. config2 - at path C:/abc/config2.ini
因此,我想创建同一程序的两个EXE快捷方式,
1. abc1.exe that works with config1
2. abc2.exe that works with config2
在Windows中有任何方法吗?
谢谢。
I am working with a program (abc.exe) in Windows 10 and I am wondering if it's possible for me to create two different variations (shortcuts) of the same abc.exe file each working with different .ini configurations.
1. config1 - at path C:/abc/config1.ini
2. config2 - at path C:/abc/config2.ini
So, I want to create two exe shortcuts of the same program
1. abc1.exe that works with config1
2. abc2.exe that works with config2
Is there any way to do that in Windows?
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
选项1:
允许在命令行上指定配置:
myApp.exe/config = c:\ whate.ini
选项2:
调用
getStartupinfo
以及startf_titleislinkName
设置了标志,您可以在.lptitle
成员中获取与您启动的.lnk快捷方式。Option 1:
Allow the configuration to be specified on the command line:
myapp.exe /config=c:\whatever.ini
Option 2:
Call
GetStartupInfo
and if theSTARTF_TITLEISLINKNAME
flag is set you can get the .lnk shortcut you were launched with in the.lpTitle
member.