The introduction

Open common software and folders according to the previous Win + R can make the computer desktop very simple and clean, easy instructions to quickly open applications, common folders. This article introduces Win + R easy access to commonly used websites.


We all have some commonly used websites in daily life and office. We generally add the commonly used websites to the browser bookmarks. Once there are too many bookmarks, it is difficult to find. Or use Chrome to download an Infinity plugin (free to add site ICONS, cloud hd wallpapers, quick access to bookmarks, weather, notes, to-do list, extension management and history) to manage our favorite sites.


✍ Win + R Open a common web site

It’s not about managing common websites, it’s about teaching you to use Win + R to enter commands to open common websites.

First look at the renderings (open nuggets home page, Nuggets back End Python, Youdao Translation, Bilibili)


It works, right? How do you do that? The principle is simple.

Win + R Enter the full name of the nuggets website, juejin. Cn/can also be opened


The Run window makes it clear that Windows will open programs, folders, documents, or Internet resources for you based on the name you enter. But need to input the full name of the line, there is a little trouble, the next introduction of a few relatively simple methods can be used to open the abbreviation.


Create an Internet shortcut

Is the use of Windows built-in Internet type shortcut, to achieve Win + R open commonly used websites

Here is an example of a site that can easily open nuggets backend Python content.


Step 1: Create a shortcut


Step 2: Enter the url and give it a name



Step 3: for.urlSuffix shortcut created.lnkShortcuts to suffixes

Double clicking on the Python shortcut will open the corresponding website, but the url shortcut will have a.url suffix, which is different from the normal.lnk suffix, so putting it in a directory with the environment variable Path won’t work either. So you need to create another.lnk shortcut for the.URL suffix to point to the.url shortcut.

Then give the.lnk shortcut pyjj for short and place the PyJJ shortcut in a directory with the environment variable Path.


There’s a big hole in here for the “Nuggets python. url” file and right click on it to create a shortcut no, it creates a shortcut to the.url suffix, so we can just copy a shortcut to any other application and right click on properties and change the target to the path of the “Nuggets python. url” file, Rename it pyjj for short.

Finally Win + R type Pyjj and press Enter to automatically jump to the Python content site of the mining backend


Page JS Jump

Window.location object with JavaScript: used to get the address (URL) of the current page and redirect the browser to a new page.

For the nuggets homepage example, create a new text file and fill it in

<script>
location.href = "https://juejin.cn/"
</script>
Copy the code

When you save the file, just change the suffix to.html, and the final file will be called juejin. HTML. The run window still won’t execute the.html file, so I created a shortcut to the file named jue and put it in the environment variable -path directory.

Win + R type Jue enter to open the gold page.


The Cmd Start command is used to Start the command

Start Starts a separate Command prompt window to run a specified program or command. Win + R Enter CMD. In the command prompt window, enter Start /? “Or ask Baidu.


For example, create a text file (.txt) and fill it in

start http://fanyi.youdao.com/
Copy the code

When saving the file, remember to change the suffix to.cmd or.bat. The final file name is fanyi.cmd. Finally, put the file in the folder with the environment variable -path and you can do it without creating a shortcut.

Win + R enter fanyi to open Youdao translation.


Open in this way, the computer screen will have a small window (CMD command prompt window) flash, for my ocD, is intolerable, so the command to modify the following, so that the black window does not appear.

@echo off 

if "% 1"= ="h" goto begin 

start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit :begin start http://fanyi.youdao.com/Copy the code

:begin Enter your own command.


Knowledge extension

The Windows running window can execute files with the following suffix

  • .cmd(CMD script)
  • .bat(Bat script)
  • .lnk(Shortcut)
  • .exe(Application)

There may be others, but I’ll just list a few that are relevant to the article.


The three contrast

  • Internet shortcutsYou need to createTwo files, a.urlFile, a.lnkfile
  • Page JS JumpThe method needs to be createdTwo filesa.htmlFile, a.lnkShortcuts.
  • Cmd Start commandOpen the way to createA file (. CMD or. Bat), but one will appear when the simple command is turned onThe black windowYou need to use other commands to make the black window not appear.
  • Open the website in the system’s default browser

Choose according to your personal preference.

Suggestion: Don’t set too many commands to open common websites, just set a few of the most common websites on the line (focus on quickly open), otherwise as many as a bookmark is not easy to find, it is better to directly use the Infinity plugin (focus on management of common websites, save some sites that may be used in the browser)


✍ optimal management

It is found that more and more applications, shortcuts, common folders and common websites are opened with Win + R. The previous management method is a little messy and not clear at a glance. Now optimizes to category management + documentation

The previous directory manages all, as shown in the figure


Classification management

Next, you’ll optimize your management by creating folders for common folders (dir), common software (SOFts), common websites (web_site), common scripts (Script), and shortcut (shortcut) using categories. One more README documentation.

Just like the subcontracting structure of a programming project.


Display of various catalogues

Common Folders (dir)


Common Software (Softs)


Common Websites (web_site)


Common scripts


Shortcut


Optimization Documentation


Then put all files that can be entered by Win + R into the shortcut directory.

Add D:\quick\shortcut to your computer’s environment variable Path, and then add D:\quick\shortcut to your shortcut file. Copy the files to the directories such as common websites, common software, and common folders based on the type.

Finally, add a readme.md documentation to introduce the directory structure and quick instructions reference, because I have set up a qdoc script here, it can Win + R enter qdoc to open the documentation, forget some instructions can be looked up. You can change it to a readme.html web page, which may open faster.

Optimized management is done. ✍ code word is not easy, still hope you heroes support ❤️.

To read this article, use Windows + R to open common software and folders


The public,

Create folder X

It took nature tens of billions of years to create our real world, and programmers hundreds of years to create a completely different virtual world. We hammer out bricks with keyboards and build everything with brains. People see 1000 as the authority, we do the opposite and defend 1024. We are not keyboard heroes, we are just extraordinary builders of the ordinary world.