当前所在位置:珠峰网资料 >> 计算机 >> 计算机等级考试 >> 正文
windows批处理学习笔记
发布时间:2010/11/19 10:29:03 来源:城市学习网 编辑:ziteng
  在C:\Documents and Settings\meiyoudao>下面建立一个test.bat文件
  在文件中输入
  dir
  ping 127.0.0.1
  打开一个cmd窗口(输入test回车,即可运行命令)
  C:\Documents and Settings\meiyoudao> test
  在文件中输入
  @dir
  @ping 127.0.0.1
  就不会显示命令
  可以用一条语句echo off 把命令都隐藏起来. 同时要把echo off 也隐藏起来,就需要@echo off
  @echo off
  dir
  ping 127.0.0.1
  即可
  获取if语句的帮助信息
  C:\Documents and Settings\meiyoudao> help if
广告合作:400-664-0084 全国热线:400-664-0084
Copyright 2010 - 2017 www.my8848.com 珠峰网 粤ICP备15066211号
珠峰网 版权所有 All Rights Reserved