Error: Unable to access jarfile Minecraft?

I have created a custom modpack along with a server also. When I launch the "Minecraft Server.jar" file everything works fine, and I'm also able to connect on my client. However, I need to increase the amount of allocated ram.

I created a run.bat file, with the following text. Java -Xms1G -Xmx2G -jar Minecraft Server.jar -o true pause

I then get the error "Error: Unable to access jarfile Minecraft" after launching the cmd.

I'm the latest version of 64bit java on a 64 bit system, so that is not the problem.

Try renaming the Minecraft Server.jar to say MCS.jar. I also never use a Gb reference in the code, I always use Mb, instead of dropping in a pause specify no Gui. Such as this

java -Xmx1024M -Xms1024M -jar MCS.jar nogui

That code I know for a fact works, be sure you have it in the same directory as the.jar file.