Launch a Standalone game without the editor via a batch file?

Hey all,

I’m trying to create some batch files to a better testing workflow but having some trouble.

I’ve tried:

@echo off
.\Engine\Binaries\Win64\UE4Editor.exe MyProject.uproject -game -log

but I get a message saying “Failed to open descriptor file ‘MyProject.uproject’”

Any ideas?

include your entire project path, and it will work :slight_smile:

that’s what I do :slight_smile:

"E:\VictoryUE4\UnrealEngine-4.0.1-release\Engine\Binaries\Win64\UE4Editor.exe" "C:\Users\Rama\Documents\Unreal Projects\VictoryGame\VictoryGame.uproject"  -game  -ResX=1280 -ResY=960 -WinX=0 -WinY=0 -NoVSync -log -SaveToUserDir


That will do! Thanks Rama :slight_smile:

@Rama - Wish you had posted this here : Compile & standalone command line

shakes fist

Also, thanks! :slight_smile:


Sorry bout that :slight_smile:

I posted there so you can finalize that answer hub :slight_smile:


But I already answered it :slight_smile:
**** you!
Nah, its all good.
Just happy I can launch the editor, compile and run standalone games all from the comfort of Notepad++ now.

Just to add something, you can use %CD% to get current dir so this work :

START UE4Editor.exe “%CD%\Project.uproject” Example_Map-game -ResX=1280 -ResY=720

Much better if you work in a team and don’t want to edit all your bat file …