Minecraft: Is this batch file for my server wrong?

For some reason I have to start it in 32bit mode but it a 64bit PC. Is the Java path wrong or something? Does the batch file even work correctly in allocating the RAM?
Batch file:

@echo off
java -d32 -jar spigot.jar
rem -Xmx8G
rem -Xms8192M -jar
ping localhost -n 5 >nul

---------------------------------------…
WINDOWS 7 64bit
16GB of RAM

Spigot.jar? What kind of server are you trying to run? The typical server batch file is just:
java -Xmx2048M -Xms1024M -jar minecraft_server.jar nogui

replace minecraft_server.jar with your server jar's name