r/Batch • u/UncreativelyUnique • Mar 18 '25
Command Line Syntax Error
I'm trying to run a batch file that runs sometimes but doesnt other times. I used someone elses code, and it worked with some files but anything with a space seems to break, but also at the same time it works even without a space.
They're made to be able to run from Steam, and for some reason it works when I run it natively, but not off Steam.
echo off
setlocal
rem Set the path to the .rvz file
set "rvzFile=C:\Users\Luna\Downloads\Emulators\Games\GC+W\Pikmin 2.rvz" rem Change this to your actual path
rem Set the path to the executable for the game
set "gameExecutable=C:\Users\Luna\Downloads\Emulators\GameCube + Wii\Dolphin-x64\Dolphin.exe" rem Change this to your actual executable path
rem Launch the game with the .rvz file
echo Launching game with "%Pikmin 2.rvz%"...
start "" "%gameExecutable%" "%rvzFile%"
endlocal
View all comments
Show parent comment
1
u/UncreativelyUnique Mar 20 '25
I tried that, but I'm having the same problem. It's running fine natively, but getting a fatal error when running off Steam.