Article structure
1. Help information for all built-in commands
2. The concept of environmental variables
3. Built-in special symbols (the actual use of the center of attention to avoid)
4. Simple batch processing document concept
5. Annex 1 Tmp.txt
6. Annex 2 Sample.bat
######################################################################
1. Help information for all built-in commands
######################################################################
Ver
CMD/?
Set/?
REM/?
If/?
echo/?
Goto/?
For/?
Shift/?
Call/?
Other common commands that need to be used
Type/?
Find/?
findstr/?
Copy/?
______________________________________________________________________
The following outputs all of 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
______________________________________________________
######################################################################
2. The concept of environmental variables
######################################################################
_____________________________________________________________________________
C:\Program Files>set
Allusersprofile=c:\document. and Settings\All Users
Commonprogramfiles=c:\program Files\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:\program Files
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
_____________________________________________________________________________
Current 1/3 page
123 Next read the full text