Посматрите что тут не так
Код:
@echo off
color 17
title L2Emu Project: Database Installer
echo.
echo.
echo ** [ L2EMU PROJECT INTERACTIVE DATABASE INSTALLER ] **
echo.
echo.
echo.
set workdir="%cd%"
:loadVars
if not exist vars.txt goto createVars
ren vars.txt *.bat
call vars.bat
ren vars.bat *.txt
cls
goto start
:createVars
echo ** [ MYSQL SERVER SETUP ] **
echo.
echo DIGIT YOUR MYSQL BIN PATH (PATH TO YOUR MYSQL SERVER BIN FOLDER)
echo.
set /P mysqlBinPath="MYSQL PATH :"
echo.
echo LOGIN SERVER SETTINGS
echo --------------------
set /P lsuser="USER (DEFAULT: 'Root'): "
echo.
set /P lspass="PASS (WILL BE SHOW AND SAVED AS CLEAR TEXT): "
echo.
set /P lsdb="DATABASE (DEFAULT:'L2Emu_DB'): "
echo.
set /P lshost="HOST (DEFAULT: 'LOCALHOST'): "
echo.
echo.
echo GAMESERVER SETTINGS
echo -------------------
set /P gsuser="USER (DEFAULT: 'Root'): "
echo.
set /P gspass="PASS (WILL BE SHOW AND SAVED AS CLEAR TEXT): "
echo.
set /P gsdb="DATABASE (DEFAULT:'L2Emu_DB'): "
echo.
set /P gshost="HOST (DEFAULT: 'LOCALHOST'): "
echo.
echo @set mysqlPath="%mysqlBinPath%\mysql"> vars.txt
echo @set mysqlBinPath="%mysqlBinPath%">> vars.txt
echo @set mysqldumpPath="%mysqlBinPath%\mysqldump">> vars.txt
echo @set lsuser=%lsuser%>> vars.txt
echo @set lspass=%lspass%>> vars.txt
echo @set lsdb=%lsdb%>> vars.txt
echo @set lshost=%lshost%>> vars.txt
echo @set gsuser=%gsuser%>> vars.txt
echo @set gspass=%gspass%>> vars.txt
echo @set gsdb=%gsdb%>> vars.txt
echo @set gshost=%gshost%>> vars.txt
echo.
echo CONFIGURATION COMPLETED, PRESS ANY KEY TO CONTINUE
echo.
:asksetup
set lsetupprompt=x
echo.