Batch BAT Enhanced function code usage instructions 1th/3 page _dos/bat

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.