WinBatch基础命令

1、echo

  --> echo[{on|off}][message]

  Simple -->:

    @echooff

     echo hello world

2、@

  -->@echo off

3、goto

  -->goto label

  Simple -->:

      if{%1}=={}goto noparms

      if{%2}=={}goto noparms

      @Rem check parameters if null show usage

      :noparms

      echo Usage: monitor.bat ServerIP PortNumber

      goto end

      字母前的:表示这个字母是标签,goto的命令是根据:的指定来寻找下一步的位置。

4、rem

  -->Rem message

原文地址:https://www.cnblogs.com/yourGod/p/9319830.html