使用不同的.INI配置运行两个不同的.EXE文件的变体

发布于 2025-02-10 19:20:45 字数 361 浏览 0 评论 0原文

我正在使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

屌丝范 2025-02-17 19:20:45

选项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 the STARTF_TITLEISLINKNAME flag is set you can get the .lnk shortcut you were launched with in the .lpTitle member.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文