だから、私はバッチでコンピューターのスピーダーを書いていますが、この問題に困惑しています:
@echo off
cls
color 02
:licence
title Computer Speeder 2012 (Free licence)
cls
echo This is the free version of Computer Speeder 2012.
echo.
echo Do you wish to license this copy? [Y]es or [N]o.
choice /c NY /n
if ERRORLEVEL 2 goto license
if ERRORLEVEL 1 goto startup1
:license
dir | find "validatecode.txt" > if exist "validatecode.txt"
goto bam
) else (
goto else
:bam
cls
echo Type in your lisencing code to validate this
echo copy to upgrade to the full version:
echo.
set /p vd=""
:else
cls
echo You do not have a validation file on your computer,
echo if you purchased the full version you probably
echo deleted the file. Check the recycle bin, check you
echo put it in the correct path or re-purchase the
echo software because it has an individual code.
pause
goto startup1
何らかの奇妙な理由で、このコードはすべて時系列に実行されます。最初に、ソフトウェアのコピーのライセンスを取得するかどうかを尋ねられます。Y を押すと、ライセンスが取得されます。次に、行 dir | を実行します。「validatecode.txt」を見つけます>「validatecode.txt」が存在する場合など。ただし、bam に移動し、THEN は else に移動します。コードには他に欠陥はありません。構文エラーは見つかりません。何が間違っているのか説明してもらえますか? 私はちょっと初心者です:/