In Windows, shortcuts are special link files that point to resource files or applications. They provide quick access to target files, enhancing user efficiency. A typical shortcut icon has a small arrow at the bottom-left corner to differentiate it from the target file.
1. Running Shortcuts via Command Line.
Using Microsoft Edge as an example, most users launch shortcuts by double-clicking the desktop icon. However, shortcuts can also be executed via the command line. Here’s how:
- Open the Command Line Window: Right-click on an empty area of the desktop and select “Open in Terminal” from the context menu. This will open a command line window, with the path automatically set to the desktop directory (e.g., `C:\Users\hello\Desktop`).
- List Directory Contents: Enter the `dir` command and press Enter to list all files in the directory. You will find a file named `Microsoft Edge.lnk`, which is the shortcut file.
- Execute the Shortcut: Type `./M` in the command line and press the Tab key to autocomplete it to `& ‘.\Microsoft Edge.lnk’`. Then press Enter. The shortcut will execute, opening the Microsoft Edge browser.
2. Analyzing Shortcut File Contents.
Shortcut files are binary, so directly viewing their content may show garbled text. However, right-clicking the shortcut icon and selecting “Properties” reveals the target file path. For instance, the Microsoft Edge shortcut points to: `C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe`.
Additionally, you can assign a custom shortcut key in the Properties window. For example, hold down `Ctrl` or`Alt` and choose a key, such as `W`. This sets `Ctrl + Alt + W` as the shortcut key. After applying the changes, pressing this key combination will launch the target application.
3. Creating a Shortcut.
To create a new shortcut on the desktop, follow these steps:
- Right-Click on the Desktop: From the context menu, choose “New” and then select “Shortcut”.
- Select the Target File: Click “Browse” to locate the target file. For instance, to create a shortcut for `cmd`, navigate to `C:\Windows\System32` and select `cmd.exe`.
- Name the Shortcut: Enter a name for the shortcut, such as “cmd” and click “Finish”. The shortcut icon will appear on the desktop.
- Run the Shortcut: Double-click the new shortcut to quickly open the target application.
4. Conclusion.
Shortcuts are an incredibly handy feature in the Windows operating system. Whether you are running shortcuts from the command line, assigning custom keys, or creating new ones, these skills can greatly enhance productivity. By mastering the principles and techniques of using shortcuts, you can efficiently manage and navigate Windows system resources.
5. Demo Video.
You can watch the following demo video by select or auto translate the subtitle to your preferred subtitle language.