Anomal 13 Posted September 29, 2013 I'v already installed mysql, so i wanted to edit the mysql paths. I copied the mysql.bat into mysql folder too. But when im starting this bat it shows me the following errors:1. The system cant find the entered path2. The command "." is wrong or can not be found!3. The command "." is wrong or can not be found!4. The command "." is wrong or can not be found!Would someone please explain me what's wrong here... and how to fix it? Maybe someone would explain me how this bat scripts are working and which commands i need to know? And i want to add BEC Starter here... how do i add this? My BEC is @ "D:\GAMES\dayz\9447487\Bec\Bec.exe -f Config.cfg"And how can i add a auto restart on crash into this bat? @echo offecho Die MySQL-Datenbank wird gestartet, bitte warte 5-10 Sekunden.start /D. D:\xampp\MySQL\MySQL.batping 127.0.0.1 -n 5 >NUL. D:\xampp\MySQL\cecho {0A} OK.{07}echo.echo.echo.echo Führe das Spawnscript aus.... D:\xampp\mysql\bin\mysql.exe --user=XXX --password=XXX --host=XXX --port=3306 --database=XXX --execute="call pMain(1)"ping 127.0.0.1 -n 5 >NUL. D:\xampp\MySQL\cecho {0A} OK.{07}echo.echo.echo.echo Starte den Server...start .\Expansion\beta\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz -noSplash -cpuCount=8 -high -maxMem=8192. D:\xampp\MySQL\cecho {0A} OK.{07}echo.echo.echo.. D:\xampp\MySQL\cecho {0B}Launcher läuft...{07}ping 127.0.0.1 -n 5 >NULecho.echo.echo..D:\xampp\mysql\MySQL\cecho {0A}Launcher wird geschossen.{07}ping 127.0.0.1 -n 5 >NULexit Share this post Link to post Share on other sites
Darth_Rogue 6 Posted October 2, 2013 I'v already installed mysql, so i wanted to edit the mysql paths. I copied the mysql.bat into mysql folder too. But when im starting this bat it shows me the following errors:1. The system cant find the entered path2. The command "." is wrong or can not be found!3. The command "." is wrong or can not be found!4. The command "." is wrong or can not be found!Would someone please explain me what's wrong here... and how to fix it? Maybe someone would explain me how this bat scripts are working and which commands i need to know? And i want to add BEC Starter here... how do i add this? My BEC is @ "D:\GAMES\dayz\9447487\Bec\Bec.exe -f Config.cfg"And how can i add a auto restart on crash into this bat? @echo offecho Die MySQL-Datenbank wird gestartet, bitte warte 5-10 Sekunden.start /D. D:\xampp\MySQL\MySQL.batping 127.0.0.1 -n 5 >NUL. D:\xampp\MySQL\cecho {0A} OK.{07}echo.echo.echo.echo Führe das Spawnscript aus.... D:\xampp\mysql\bin\mysql.exe --user=XXX --password=XXX --host=XXX --port=3306 --database=XXX --execute="call pMain(1)"ping 127.0.0.1 -n 5 >NUL. D:\xampp\MySQL\cecho {0A} OK.{07}echo.echo.echo.echo Starte den Server...start .\Expansion\beta\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz -noSplash -cpuCount=8 -high -maxMem=8192. D:\xampp\MySQL\cecho {0A} OK.{07}echo.echo.echo.. D:\xampp\MySQL\cecho {0B}Launcher läuft...{07}ping 127.0.0.1 -n 5 >NULecho.echo.echo..D:\xampp\mysql\MySQL\cecho {0A}Launcher wird geschossen.{07}ping 127.0.0.1 -n 5 >NULexitOk so I have a few tips for you. First off, you will be better off setting mysql to run as a service on your server instead of using a batch file to run the exe. To do this, open a command prompt and then go to the directory where your mysql exe is located and type "mysqld --install". That installs MySQL as a service on your Windows machine. The program (service) will then need to be started. Go to "Start>Run" and type in 'services.msc". Find the Mysql entry and right click on it. Click "start". You're off to the races. Now, everytime your server starts, mysql will always be running in the background and you won't have that annoying window on your desktop cluttering things up. PROFIT! Next, when you run batch files and you are opening programs in different directories, you have to tell the batch file to change directories in order to find the program you're wanting to start. You do this with a "cd\" command. So....your batch should look like this:@echo offecho Führe das Spawnscript aus...cd\ D: (you would only have to use this and the above line if you are starting on drive "C". Otherwise you can remove them)cd\ xampp\mysql\bin\. D:\xampp\mysql\bin\mysql.exe --user=XXX --password=XXX --host=XXX --port=3306 --database=XXX --execute="call pMain(1)"timeout /t 5 >nulecho.echo.echo.echo Starte den Server...cd\ "drive and path to your arma2oaserver executable" (remove quotes)start .\Expansion\beta\arma2oaserver.exe -mod=Expansion\beta;Expansion\beta\expansion;ca;@hive;@dayz -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\basic.cfg -profiles=cfgdayz -noSplash -cpuCount=8 -high -maxMem=8192echo.echo.echo.timeout /t 5 >nulecho.echo.echo.echo Starte den BEC...cd\ D:\Games\dayz\9447487\BEC\start "BEC" "bec.exe" -f Config.cfg{0A}Launcher wird geschossen.{07}timeout /t 5 >nulexitThere may be some slight differences depending on your exact setup, such as drive letters and so on, but I think that will help get you closer. One thing that I changed is to use a "timeout" command instead of "ping". I noticed a problem with memory consumption on my server when I used the "ping" command in my startup batches for some reason. Migrating over to "timeout" made it go away. Weird...but it worked. Anyways, hope that helps! Share this post Link to post Share on other sites