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

Popular posts from this blog

c++ - Function signature as a function template parameter -

algorithm - What are some ways to combine a number of (potentially incompatible) sorted sub-sets of a total set into a (partial) ordering of the total set? -

How to call a javascript function after the page loads with a chrome extension? -