想(Want)学习一个可以节省 2 秒时间的简单技巧吗?我将向您展示如何从一个快捷方式启动多个程序。一些应用程序自然而然地结合在一起。例如,Steam和Raptr、VLC和Last.fm、MS Word和Photoshop等。
根据您在 PC 上执行的操作,您会注意到您一直在同时使用两个或多个程序。阅读本指南后,您将了解如何捆绑这些应用程序以在您双击一个快捷方式时启动。
使用一个快捷方式启动多个程序
我们将这个过程分为三个简单的步骤:
- 获取程序的目标路径。
- 创建一个批处理文件。
- 使用批处理文件创建快捷方式。
请继续阅读,我们将详细介绍配置一次打开多个 Windows 程序的快捷方式的详细步骤。
1]获取程序的目标路径
使用一个快捷方式打开多个程序的第一步是获取所有程序的目标路径。以下是查找程序路径的方法。
按(Press)Windows按钮并搜索程序。当应用程序出现在搜索结果中时,右键单击它并选择 打开文件位置(Open file location)选项。这会将您带到应用程序的可执行文件所在的目录。
右键单击(Right-click)快捷方式并转到“ 属性(Properties )”选项。在“属性(Properties)”窗口中,切换到“ 快捷方式(Shortcut)”选项卡。复制目标(Target)字段中的所有内容并按以下格式粘贴到记事本中:
输入cd,将完整路径粘贴到应用程序,然后按ENTER。这会将目录更改为程序的目录。例子:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
输入开始(start )和文件名。它始终是最后一个斜杠 () 之后的路径的最后一部分。Start启动可执行文件。例子:
start chrome.exe
(Carry)对要使用快捷方式打开的所有程序执行上述步骤。在每个应用程序的路径后按ENTER 。(Hit ENTER)
2]创建一个批处理文件
使用保存在记事本(Notepad)中的应用程序路径,您现在必须创建批处理文件,我们可以从中同时运行这两个程序。
只需单击一下即可打开保存了所有要打开的应用程序路径的记事本。(Notepad)按照以下指南修改注释内容:
- 添加
@echo off
到笔记的顶部。这样,执行批处理文件时命令将不会显示在命令提示符中。(Command Prompt) exit
在注释底部添加 执行批处理文件后退出批处理文件。
记事本(Notepad)的内容现在应该如下所示:
@echo off
cd "C:\Program Files (x86)\Google\Chrome\Application"
start Chrome.exe
cd "C:\Program Files (x86)\Wunderlist2"
start Wunderlist.exe
exit
上面的脚本是同时启动Google Chrome和Wunderlist的示例。
最后,转到File > Save as, 然后在Save as type中选择All files。在文件名(File name)末尾附加.bat。例如,我们使用 了 batchfile.bat(batchfile.bat)。
请注意保存批处理文件的位置。在下一步中创建快捷方式时,您需要指向此批处理文件的路径。
3]使用批处理文件创建快捷方式(Create)
启动文件资源管理器(File Explorer)并转到您想要打开多个应用程序的快捷方式的目录。您可以在桌面上执行此操作。右键单击空白区域并 从上下文菜单中选择New > Shortcut
(Enter)在键入项目的位置(Type the location of the item)字段中输入新创建的批处理文件的路径 。或者,点击 浏览(Browse)以查找文件。获取位置后,单击下面的 下一步 (Next )按钮。
给快捷方式起一个您会记住的名称,然后单击“ 完成(Finish)”按钮。
仅此而已!双击新的快捷方式,您的计算机将打开所有快捷方式在批处理文件中的程序。
阅读下一篇:(Read next:) 如何打开同一程序的第二个或多个实例。
How to launch multiple programs with one shortcut in Windows 11/10
Want to lеarn a simple tip that saves 2 seconds of your time? I’ll show you how to launсh multiple programѕ from a sіngle shortcut. Some apps go together naturally. For instance, Steam and Raptr, VLC and Last.fm, MS Word and Photoshop, etc.
Depending on what you do on your PC, you’ll notice that you are constantly using two or more programs at the same time always. After reading this guide, you’ll learn how to bundle these apps to launch when you double-click one shortcut.
Launch multiple programs with one shortcut
We’ll categorize the process into three easy steps:
- Get the programs’ target paths.
- Create a batch file.
- Create a shortcut with the batch file.
Read on, as we go through the detailed steps for configuring a shortcut that opens multiple windows programs at once.
1] Get the programs’ target paths
The first step to opening multiple programs with one shortcut is to get the target paths of all the programs. Here’s how to find the program paths.
Press the Windows button and search for the programs. When the application shows up in the search results, right-click on it and select the Open file location option. This takes you to the directory in which the application’s executable file resides.
Right-click on the shortcut and go to the Properties option. In the Properties window, switch to the Shortcut tab. Copy out everything in the Target field and paste in a Notepad note in the format below:
Enter cd, paste the full path to the application, and hit ENTER. This changes the directory to that of the program. Example:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
Enter start and the name of the file. It’s always the last part of the path after the last slash (\). Start launches the executable file. Example:
start chrome.exe
Carry out the above steps for all the programs that you want to open with the shortcut. Hit ENTER after the paths to each of the applications.
2] Create a batch file
With the application paths saved in your Notepad, you now have to create the batch file from which we can run both programs at once.
Open the Notepad on which you saved the paths to all the applications you want to open with a single click. Modify the content of the note following the guide below:
- Add
@echo off
to the top of the note. With this, commands won’t display in the Command Prompt while executing the batch file. - Add
exit
at the bottom of the note to quit the batch file after executing the batch file.
The content of your Notepad should now look like this:
@echo off
cd "C:\Program Files (x86)\Google\Chrome\Application"
start Chrome.exe
cd "C:\Program Files (x86)\Wunderlist2"
start Wunderlist.exe
exit
The script above is an example of one done for starting Google Chrome and Wunderlist at the same time.
Finally, go to File > Save as, and in the Save as type, choose All files. Append .bat at the end of the File name. For example, we used batchfile.bat.
Note where you save the batch file. You’ll need to path to this batch file when creating the shortcut in the next step.
3] Create a shortcut with the batch file
Launch File Explorer and go to the directory in which you want the shortcut that opens multiple apps. You can do it on your desktop. Right-click on the white space and select New > Shortcut from the context menu.
Enter the path to the newly created batch file in the Type the location of the item field. Alternatively, hit Browse to find the file. After getting the location, click on the Next button below.
Give the shortcut a name that you’ll remember and hit the Finish button.
That’s all it takes! On double-clicking the new shortcut, your computer will open all the programs whose shortcuts are in the batch file.
Read next: How to open second or multiple instances of the same program.