Using common Windows commands can improve the efficiency and quick handling matters.
The following is usually used in the Windows command / cmd command.
First, the following command can operate without having to open cmd window (input is complete to make a carriage return, you can perform).
1, the deployment site requires frequent dealings with IIS :( IIS is installed)
(Win + R) + inetmgr --- quickly open the IIS Manager
(Win + R) + iisreset --- quick restart IIS services
2, the control panel open
(Win + R) + control.exe --- Open Control Panel (enter control)
3, open Services / Remote / system log
(Win + R) + service.msc --- open service
(Win + R) + mstsc --- open a remote connection (remote connection opening method see enclosure)
(Win + R) + eventvwr.msc --- open system log (.msc be omitted)
4, open office com assembly
(Win + R) + Dcomcnfg --- Com assembly open office 64 bit
(Win + R) + comexp.msc -32 --- Com open office 32 bit assembly (spaces before -32)
5, open cmd command prompt window
(Win + R) + cmd --- open a command prompt window
Second, the need to open the following command cmd command window, execute (execution requires a carriage return)
1, the computer switch command (command prompts the window) [ without opening the window is operable cmd ]
(Command prompt window) + shutdown ---- view the shutdown syntax definition
(Command prompt window) + shutdown -s -t off after no tips 5 -f --5s (s: shutdown, t: time)
(Command prompt window) + shutdown -r -t 5 --5s after restart (r: restart)
(Command prompt window) + log off after shutdown -l -t 5 -f --5s (l: logout)
(Command prompt window) + after shutdown -h -t 5 -f --5s sleep (h: hibernate)
(Command prompt window) + at 23:00 shutdown -s - timed shutdown at 23:00
(Command prompt window) + shutdown -a, that is all a abbreviation, meaning cancel all shutdown command, but can not cancel the previous step command
************************************************ 2019- 10-23 19:41:50 supplement ***************************************** *********************
2, .bat script execution to get the current wording operation path
% ~ Dp0 ---- get the current execution path.
@echo get the current script execution path TITLE get the current script execution path case echo path is currently executing% ~ dp0 this opens the echo:% ~ dp0test.txt %~dp0test.txt
% 0 ---- refers to the path of the executable file itself
d - is an abbreviation of the drive, represents the drive, the disk
p - is the path of the acronym that stands for the path, directory
~ 0 - remove any quotation marks ( "), expand% 0
% ~ F0 - the% 0 expanded to a fully qualified path name (" f "is file, namely the file)
% ~ D0 - only% 0 expanded to a drive No.
% ~ p0 - only% 0 expanded to a path
% ~ n0 - only% 0 expanded to a file name ( "n" is the name filename)
% ~ X0 - only% 0 expanded to a file extension
% ~ s0 - expanded path contains short names ( "s" is short, short)
% ~ A0 - the% 0 extension to the file attribute file ( "a" as the attribute, i.e., attributes)
% ~ T0 - the% 0 expansion to date / time of the file ( "T" time)
% ~ Z0 - 0% extension to the file size (size size)
More finishing as commonly used commands, there are a lot of command and control, follow-up will be constantly updated. . . If unreasonable, please exhibitions.
If you feel that you find this helpful, please click "recommend" button, your "recommended" will be my greatest writing power! Welcome to reprint, please indicate the source.