aims:
In Windwos Explorer, right-click (shift + right), right-click menu "Open command window here (in here to open Powershel)" menu item, click on the menu item to open the "command window (Powershell command window)" Dialogue frame. As shown below:
method:
(1) New txt, name OpenCmdInHere.txt
(2) copy the code and save
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]
@="在此处打开命令窗口"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
@="PowerShell -windowstyle hidden -Command \"Start-Process cmd.exe -ArgumentList '/s,/k, pushd,%V' -Verb RunAs\""
(3) modify the file extension reg. Confirm agreement to modify the file name extension.
(4) Double-click the file OpenCmdInHere.reg finish modifying the registry.
Congratulations, you have successfully set up, this you have completed your goal.
Common file operation command cmd
File operations:
Navigate to the specified directory: cd / dd: \ sdk # can change both the letter and directory
display the current directory tree: tree # display only folder does not display the file.
Displays the current directory tree: tree / f # display the name of the folder and file.
Displays the current directory tree: tree / f> filelist.txt # display the name of the folder and file, and save it.
Network operations:
Test the unit TCP / IP protocol configuration is correct and current status of the network: ping IP address / hostname / domain [-t] [-a] [-n count] [-l size]
Understand the overall situation and the current network connections: netstat [-n] [-a] [-e] [-r] [- s]
to know the value of the current TCP / IP protocol set: ipconfig [/ all / release / renew]
Configuring routing and view the current routing situation: route [print] [add] [change] [delete]
It displays the time required for the packets transmitted from the computer to a set of destination IP router, and each hop (i.e. transmission path trace data packets), to test network connectivity problems:
tracert [-d] [-h maximum_hops] [-j host-list] [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name (target IP, URL or domain name)
See the current content local computer or another computer ARP cache: arp [-a / g] [-s] [-d]