Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Batch file help?

I've been running Minecraft servers for a while, so I know what I'm doing. My .bat files have always been working properly, but one day I tried to start up my server and got this error:

"Windows cannot find 'C:\Users\Blah\Downloads\Server\start.ba... Make sure you typed the name correctly, and then try again."

With this, I deleted my .bat and made a new one. Same error. I tried running it from CMD but again, no luck.

Then I assumed it was an error with my jar gone corrupt, but getting a new one had no effect. When I tried to make a test .bat file, it didn't work again. Apparently it goes outside of just the files on the server or the code in the .bat. Can anyone explain what happened?

1 Answer

Relevance
  • 6 years ago

    Okay

    The error message is telling you precisely what is wrong. You're entering the wrong name; the file doesn't exist at that location.

    That is, the file

    `C:\Users\Blah\Downloads\Server\ start.bat' doesn't exist.

    Make that backslashes and spaces in string literals are escaped as required and that there is actually `start.bat' in `C:\Users\Blah\Downloads\Server\'.

    Make sure that you are not supplying relative names, and if you are, not changing the PWD relative to `start.bat'.

Still have questions? Get your answers by asking now.