batch file - set /P if statement error (windows 8) -
can please tell me wrong line of code?
:server @echo off color 04 title start server cls echo start minecraft server? (y/n) set /p %serverchoice%=blah>nul if %serverchoice%==y start c:\users\link1_000\desktop\bukkit_craft\run.bat pause>nul goto :start all gives me cd unexpected @ time, run echo on see if changes directories, does't. ideas?
not sure cd error coming since don't have cd in code shown, set line should not have percent signs:
set /p serverchoice=blah>nul with percent signs, interprets environment variable, isn't need.
Comments
Post a Comment