% errorlevel% return value is operated on
HELP help command For more information about a command, type HELP command name
@ Echo shield, such as pause and there are differences @pause
@pause below ↓
pause below ↓
REG modify the registry
REG /? Help command
Redirect 1 > and >>
1> nul shielding correct output return
2> nul shielded output error return
This is normal output ↓
Let's use output redirection shield command:
Special note, this is the command I use in a .bat file for: 1> NUL 2> NUL REG the QUERY "HKCU \ Software"
Shown as REG the QUERY "HKCU \ Software" 1> NUL 2> NUL , because cmd will automatically rearrange the order of your command.
Not display output
Reference blog: https://www.jianshu.com/p/dc15aad590d1
This article blog address: https://www.cnblogs.com/2018shawn/p/11106660.html