每次我運行下面的代碼時,都會出現此錯誤:'10 1' is not recognized as an internal or operable program or batch file.我檢查了堆疊溢位,但找不到任何東西。如果這是一個不好的問題,我深表歉意。這是代碼:
`@echo off
set chips=10
set return=1
echo %chips% chips remaining
echo choose a number between one and ten:
set /p num=number:
set /p yn=play?
if %yn%==y (echo starting..) else (exit)
timeout /t 3
SET /A test=%RANDOM% * 10 / 32768 1
echo %test%
if %test%==%num% (%chips% %return%)
echo %chips% chips remaining`
uj5u.com熱心網友回復:
如果比較后應跟隨可識別的命令,例如set /a var=%chips% %return%,但不在您的示例中
if %test%==%num% (%chips% %return%)
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/476366.html
標籤:批处理文件
下一篇:如何計算批處理檔案中的子檔案夾
