Skip to content

Instantly share code, notes, and snippets.

@AliLogic
Last active January 21, 2021 13:11
Show Gist options
  • Save AliLogic/cf685f92cb0e914c4fd72595e1bb9629 to your computer and use it in GitHub Desktop.
Save AliLogic/cf685f92cb0e914c4fd72595e1bb9629 to your computer and use it in GitHub Desktop.
A simple batch script that I wrote for using ENB with UGMP.
:: Last Edited On: 17:55 GMT + 5 21st January 2020
:: Made the script more robust to require zero changes
@echo OFF
echo Running the script from the directory '%CD%'...
echo.
:: Check if the 'fix' folder exists or not
IF NOT EXIST "%CD%\fix\" (
:: Create the fix folder first
MD fix
echo Created the 'fix' folder
echo.
)
:: Move d3d9.dll from game folder to folder above
MOVE "%CD%\d3d9.dll" "%CD%\fix"
echo Moved the file into a different folder
echo.
:: A simple pause because some systems might be slow..
:: The only annoying fix for timeout was to use ping command
PING -n 5 127.0.0.1>nul
echo.
:: Launch ugmp.exe
.\ugmp.exe
echo.
:: Move d3d9.dll to the game folder from the folder above
MOVE "%CD%\fix\d3d9.dll" "%CD%"
echo Moved the file back to the current folder
echo.
:: Wait for the user to close the window
echo Hit any key to close this window
pause >nul
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment