這是我遇到的問題。我需要通過發送給他們尊敬的類(cls)來正確執行選擇行。所有的錯誤都與ERRORLEVEL和選擇腳本有關。這是我唯一的主要問題,但如果你能指出其他人的幫助,我會很感激。最美好的祝願,Mystikality。使用批處理文件來製作簡單的Y/N問題。有問題的代碼。 HALP
cls
@echo off
echo Welcome to the Alpha PPFI Program V0.001.
GOTO T1
:T1
echo This is a security program ran just by a simple Batch file.
GOTO T2
:T2
echo If you have an interest in our program, enter your response below.
GOTO Variable
:Variable
CHOICE /C YN /N /M "Welcome, if you would wish to continue, enter Y/N
below."
if %errorlevel%==Y GOTO Create
if %errorlevel%==N GOTO ExitWarning
:Create
CHOICE /C YN /N /M "Create a new PPFI interface? Y/N"
if %errorlevel%==Y GOTO BatchGen
if %errorlevel%==N GOTO Variable
:BatchGen
start call CreatePPFI_V0.001.bat
exit
pause
:ExitWarning
CHOICE /C YN /N /M "Are you sure you want to exit V0.001 PPFI interface
alpha? Y/N"
if %errorlevel%==Y GOTO Variable
if %errorlevel%==N GOTO exit'
這是什麼意思?任何細節? – Mystikality
請參閱編輯答案 – SSH
感謝幫助:) – Mystikality