I added this file to the Windows folder, so if I open cmd and type 'EN', I open my Minecraft Server console in cmd, but when I close the server, I want cmd asking me if restart the server, but if I type something the cmd closes, someone can help me. (sorry for english if I wronged something)
@echo off
cd C:\Users\playl\Desktop\_\Server\EmeraldNetwork
start .
@echo on
start.bat
:1
set /p id="restart (Y/N): "
IF %id%==Y (
start.bat
)
ELSE IF %id%==N (
exit
)
ELSE (
goto :1
)
Aucun commentaire:
Enregistrer un commentaire