Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Batch

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
 
Joined
Oct 24, 2003
Messages
680
Reaction score
1
i tryed that as well lol no luck see here.. this dont work and its full paths..

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\LGAME_INFO.MIF C:\Program Files\Lunentia_World\
COPY C:\Program Files\Lunentia_Wolrd\Window\NLGAME_INFO.MIF C:\Program Files\Lunetia_World\


:ItemB
Copy \will do wen i fix above one tbh\


:End
exit
 
Last edited:
Custom Title Activated
Loyal Member
Joined
Feb 27, 2004
Messages
1,378
Reaction score
50
can u tell me the error the msdos gives u.. try to remove the exit command at the end and replace it with pause to see the error that it gives.
 
Newbie Spellweaver
Joined
May 17, 2005
Messages
9
Reaction score
0
because you got a space in C:\Program Files\Lunentia_World
you need to encapsulate it in "" (quotes)
like this:
COPY "C:\Program Files\Lunentia_World\Window\LGAME_INFO.MIF" "C:\Program Files\Lunentia_World\"

otherwise Copy thinks it must copy C:\Program to the location Files\Lunentia_World


also above the line :ItemB you would need to put a GOTO End otherwise after doing ItemA, ItemB would also be executed.

//edit

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\LGAME_INFO.MIF" "C:\Program Files\Lunentia_World\"
COPY "C:\Program Files\Lunentia_Wolrd\Window\NLGAME_INFO.MIF" "C:\Program Files\Lunetia_World\"
GOTO End
:ItemB
Copy \will do wen i fix above one tbh\
:End
exit
 
Last edited:
Back
Top