set /a 和set /p

set /a  /a 指定一個變量 /a = (等號右邊的字符串爲被評估的數字表達式) /p 指定用戶輸入 @echo off set /p POP=請輸入ping的次數: ping /n %POP% www.baidu.com pause 執行輸出: 請輸入ping的次數:10(自定義)
相關文章
相關標籤/搜索