Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ::程式介面設定
- @echo off
- @SETLOCAL ENABLEEXTENSIONS
- @COLOR 17
- TITLE Yes Or No Selection
- cls
- :Start
- ::啟動程式所顯示的畫面
- cls
- echo If you still can see this file after the program closed, the reason is the program wrongly shut down. > ProgramRunning.txt
- Echo ==============================================================================
- Echo.
- Echo Example of ▓ ▓ ▓ ▓
- Echo ▓ ▓ ▓▓ ▓
- Echo ▓▓▓▓ ▓▓▓ ▓▓▓ ▓ ▓▓
- Echo ▓ ▓ ▓ ▓ ▓ ▓
- Echo ▓▓▓▓ ▓▓▓ ▓ ▓ ▓ Selection
- Echo.
- Echo ==============================================================================
- Echo.
- Echo Example of "Yes or No Selection"
- Echo Copyright (c) James Studio 2015
- Echo.
- Echo ------------------------------------------------------------------------------
- Echo.
- Echo This is an example of "Yes or No Selection". In the next screen, select the
- Echo "Y" will quit the program, select "N" will reappear the screen.
- Echo.
- Echo ------------------------------------------------------------------------------
- Echo.
- PAUSE
- Echo.
- Echo ------------------------------------------------------------------------------
- cls
- Goto Menu
- :Menu
- ::詢問用家是否要關閉程式
- cls
- set Confirmation=
- Echo ==============================================================================
- Echo.
- Echo Example of ▓ ▓ ▓ ▓
- Echo ▓ ▓ ▓▓ ▓
- Echo ▓▓▓▓ ▓▓▓ ▓▓▓ ▓ ▓▓
- Echo ▓ ▓ ▓ ▓ ▓ ▓
- Echo ▓▓▓▓ ▓▓▓ ▓ ▓ ▓ Selection
- Echo.
- Echo ==============================================================================
- Echo.
- Echo Example of "Yes or No Selection"
- Echo.
- Echo ------------------------------------------------------------------------------
- ::模板開始
- Echo.
- Echo Exit Confirmation:
- Echo [Y]es
- Echo [N]o
- Echo *Please enter the first letter of the item you want to select.
- Echo.
- Echo ------------------------------------------------------------------------------
- Echo.
- ::將選擇的字母寫入「Confirmation」
- set /P Confirmation= Please select an item: %=%
- Echo.
- Echo ------------------------------------------------------------------------------
- ::選擇「Y」會退出程式,選擇「N」會重新選擇
- If %Confirmation% == Y goto Exit
- If %Confirmation% == N goto SelectNo
- If %Confirmation% == y goto Exit
- If %Confirmation% == n goto SelectNo
- ::選擇錯誤會回到開始畫面
- goto Start
- ::模板結束
- :SelectNo
- ::選擇否所跳轉的畫面
- cls
- Echo ==============================================================================
- Echo.
- Echo Example of ▓ ▓ ▓ ▓
- Echo ▓ ▓ ▓▓ ▓
- Echo ▓▓▓▓ ▓▓▓ ▓▓▓ ▓ ▓▓
- Echo ▓ ▓ ▓ ▓ ▓ ▓
- Echo ▓▓▓▓ ▓▓▓ ▓ ▓ ▓ Selection
- Echo.
- Echo ==============================================================================
- Echo.
- Echo Example of "Yes or No Selection"
- Echo.
- Echo ------------------------------------------------------------------------------
- Echo.
- Echo You have chosen "No". Will return to the original screen.
- Echo.
- Echo ------------------------------------------------------------------------------
- Echo.
- PAUSE
- Echo.
- Echo ------------------------------------------------------------------------------
- goto Menu
- :Exit
- ::關閉程式
- cls
- Echo ==============================================================================
- Echo.
- Echo Example of ▓ ▓ ▓ ▓
- Echo ▓ ▓ ▓▓ ▓
- Echo ▓▓▓▓ ▓▓▓ ▓▓▓ ▓ ▓▓
- Echo ▓ ▓ ▓ ▓ ▓ ▓
- Echo ▓▓▓▓ ▓▓▓ ▓ ▓ ▓ Selection
- Echo.
- Echo ==============================================================================
- Echo.
- Echo Example of "Yes or No Selection"
- Echo.
- Echo ------------------------------------------------------------------------------
- Echo.
- Echo Thank you for using our application, goodbye!
- Echo The program has been closed.
- Echo.
- Echo ------------------------------------------------------------------------------
- Echo.
- PAUSE
- Echo.
- Echo ------------------------------------------------------------------------------
- cls
- del ProgramRunning.txt
- @COLOR 07
- Exit /B
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement