是否可以通过快捷方式启动 2 个程序?
我对 Windows 最感兴趣,我想知道是否可以通过一个快捷方式启动 2 个单独的程序,并让另一个程序反映该快捷方式。
想想 Windows 7 任务栏。我希望有一个快捷方式,首先启动一个程序,然后启动另一个程序,该程序反映任务栏上快捷方式图标的状态(正在运行/未运行)。
我正在尝试创建一个启动器,首先启动依赖项服务,然后启动另一个程序。另一个程序无法启动该服务,因为它严重依赖它。我希望能够在Win7任务栏中有一个快捷方式图标,如果它指向启动器,那么快捷方式图标不会反映实际的程序,而是反映启动器。如果快捷方式适用于实际程序,则没有启动启动器的快捷方式。
我不想有两条捷径。
如果有人对我正在做的事情感兴趣,我正在尝试在本地计算机上运行 NodeJS,并使用 Chrome 应用程序快捷方式功能将 Web 应用程序用作桌面应用程序。
I'm mostly interested in Windows and I'd like to know if it's possible to launch 2 separate programs via one shortcut, and have the other one reflect the shortcut.
Think about Windows 7 taskbar. I want to have a shortcut there that launches one program first, then it starts another program after that which reflects the state of the shortcut icon (running/not running) on the taskbar.
I am trying to create a launcher that launches a dependency service first, and then launch another program. The another program can't launch the service because it heavily depends on it. I'd like to be able to have a shortcut icon in Win7 taskbar, and if it points to the launcher, then the shortcut icon does not reflect the actual program, but instead the launcher. If the shortcut is for the actual program, then there's no shortcut to start the launcher.
I wouldn't want to have two shortcuts.
If anyone is interested what I am doing, I am trying to run NodeJS on the machine locally, and have a web app served as a desktop app using Chrome application shortcut functionality.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
创建一个批处理文件,并在启动第二个程序之前参考以下链接检查第一个进程是否正在运行。
在批处理文件中,如何我可以判断进程是否正在运行吗?
您可以在任务栏上创建批处理文件的快捷方式,甚至可以更改其图标...
Create a batch file and refer to the following link to check if the 1st process is running or not before you launch the 2nd program.
Inside a batch file, how can I tell whether a process is running?
You can create a shortcut to the batch file on the taskbar and even change its icon...