How to use batch BAT Enhancement function Code
Editor to share with you how to use the batch BAT enhancement function code, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
#
1. Help information for all built-in commands
#
Ver
Cmd /?
Set /?
Rem /?
If /?
Echo /?
Goto /?
For /?
Shift /?
Call /?
Other common commands that are required
Type /?
Find /?
Findstr /?
Copy /?
_
Now output all the above help to a file
Echo ver > tmp.txt
Ver > > tmp.txt
Echo cmd /? > tmp.txt
Cmd /? > tmp.txt
Echo rem /? > tmp.txt
Rem /? > tmp.txt
Echo if /? > tmp.txt
If /? > tmp.txt
Echo goto /? > tmp.txt
Goto /? > tmp.txt
Echo for /? > tmp.txt
For /? > tmp.txt
Echo shift /? > tmp.txt
Shift /? > tmp.txt
Echo call /? > tmp.txt
Call /? > tmp.txt
Echo type /? > tmp.txt
Type /? > tmp.txt
Echo find /? > tmp.txt
Find /? > tmp.txt
Echo findstr /? > tmp.txt
Findstr /? > tmp.txt
Echo copy /? > tmp.txt
Copy /? > tmp.txt
Type tmp.txt
_ _ _
#
two。 The concept of environmental variables
#
_
C:\ Program Files > set
ALLUSERSPROFILE=C:\ document. And Settings\ All Users
CommonProgramFiles=C:\ ProgramFiles\ Common Files
COMPUTERNAME=FIRST
ComSpec=C:\ WINNT\ system32\ cmd.exe
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Os2LibPath=C:\ WINNT\ system32\ os2\ dll
Path=C:\ WINNT\ system32;C:\ WINNT;C:\ WINNT\ system32\ WBEM
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 6 Stepping 5, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0605
ProgramFiles=C:\ ProgramFiles
PROMPT=$P$G
SystemDrive=C:
SystemRoot=C:\ WINNT
TEMP=C:\ WINNT\ TEMP
TMP=C:\ WINNT\ TEMP
USERPROFILE=C:\ document. And Settings\ Default User
Windir=C:\ WINNT
_
These are all the contents of this article entitled "how to use batch BAT Enhancement function Code". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!