- Joined
- Oct 24, 2003
- Messages
- 680
- Reaction score
- 1
well i doubt this is the right forum but oh well lol... basicly i cant get the copy command working in batch lol look at this and can you tell me whats wrong ? *please note i have only done option A and E ... i will do option B when i can get option A to work lol
Code:
@ECHO OFF
CLS
:LOOP
ECHO --------------------------------------------------------
ECHO Lunentia Window / FullScreen Mode V 0.1 Created by Demix
ECHO --------------------------------------------------------
ECHO .
ECHO ---------------------
ECHO Please Pick an Option
ECHO ---------------------
ECHO ================
ECHO A. Window Mode
ECHO B. Full Screen
ECHO Q. Quit
ECHO ================
:: SET /P prompts for input and sets the variable
:: to whatever the user types
SET Choice=
SET /P Choice=Type the letter and press Enter:
:: The syntax in the next line extracts the substring
:: starting at 0 (the beginning) and 1 character long
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
ECHO.
:: /I makes the IF comparison case-insensitive
IF /I '%Choice%'=='A' GOTO ItemA
IF /I '%Choice%'=='B' GOTO ItemB
IF /I '%Choice%'=='Q' GOTO End
ECHO "%Choice%" is not valid. Please try again.
ECHO.
GOTO Loop
:ItemA
CLS
COPY C:\Program Files\Lunentia_World\Window\*.MIF \Lunentia_World\
:ItemB
Copy \Full\
:End
exit