源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

批处理BAT加强函数代码使用说明第1/3页

  • 时间:2020-10-25 16:31 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:批处理BAT加强函数代码使用说明第1/3页
文章结构 1. 所有内置命令的帮助信息 2. 环境变量的概念 3. 内置的特殊符号(实际使用中间注意避开) 4. 简单批处理文件概念 5. 附件1 tmp.txt 6. 附件2 sample.bat ###################################################################### 1. 所有内置命令的帮助信息 ###################################################################### ver cmd /? set /? rem /? if /? echo /? goto /? for /? shift /? call /? 其他需要的常用命令 type /? find /? findstr /? copy /? ______________________________________________________________________ 下面将所有上面的帮助输出到一个文件 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. 环境变量的概念 ###################################################################### _____________________________________________________________________________ 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 _____________________________________________________________________________
当前1/3页 [b]1[/b][url=http://www.1sucai.cn/article/15637_2.htm]2[/url][url=http://www.1sucai.cn/article/15637_3.htm]3[/url][url=http://www.1sucai.cn/article/15637_2.htm]下一页[/url][url=http://www.1sucai.cn/article/15637_all.htm]阅读全文[/url]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部