banner
李大仁博客

李大仁博客

天地虽大,但有一念向善,心存良知,虽凡夫俗子,皆可为圣贤。

Quickly create function keys by right-clicking on Windows.

Every day, you need to create a folder named after the current date in the same directory. You can be lazy and add this function to the right-click menu in WINDOWS.

STEP 1. Create a new .reg file and write the following content:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\Shell\CMD_NAME]
"MUIVerb"="Date Folder"
"Icon"="shell32.dll,3"
"Position"="top"

[HKEY_CLASSES_ROOT\Directory\Background\Shell\CMD_NAME\command]
@=“COMMAND”

Where CMD_NAME is the registry name of the right-click menu and COMMAND can be one of the following, or it can be a .bat batch file or an .exe executable file:

  1. Create a folder with the current date:

md %date:~0,4%%date:~5,2%%date:~8,2%

  1. Right-click to open the command prompt CMD. The Server version already provides the option to open PowerShell.

cmd.exe /k cd %l

STEP 2. Double-click to run as administrator.
STEP 3. Restart Explore.exe.
STEP 4. If you want to delete it, you need to go to the registry to delete the corresponding items.

Reference: https://quan.ithome.com/0/164/516.htm

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.