:: UnrealProjectMenuRegistration.cmd :: :: This batch file will try to find where the Unreal Engine is installed, then update your registry :: to register the Unreal Project File type (and its right click menu for things such as generating :: Visual Studio project files, and launching) :: :: Run as an Administrator, as it's required for writing to HKLM. :: :: Author: David Moore <[email protected]> :: :: 二次修改:moonrailgun :: http://www.moonrailgun.com/ ::@ECHO OFF echo. echo Locating where Unreal Engine Launcher... set UnrealLauncherDir= %~pd0 IF "%UnrealLauncherDir%"=="" GOTO CannotFindUnrealEngine echo. echo Using Unreal Engine directory: %UnrealLauncherDir% set LauncherPath=%UnrealLauncherDir%Engine\Binaries\Win64\UnrealVersionSelector.exe echo. echo Adding registry keys for the Unreal Project right click menu... :: HKLM\SOFTWARE\Classes\.uproject reg ADD "HKLM\Software\Classes\.uproject" /ve /d Unreal.ProjectFile /f IF ERRORLEVEL 1 ( echo Couldn't write to registry. Did you forget to run this batch file as an administrator? goto TheEnd )