Created
July 26, 2023 21:28
-
-
Save victor141516/e28f6bca6c73f6e7d09ddab7ea2933aa to your computer and use it in GitHub Desktop.
Disable PUBG intros
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
:: Define the path to the directory | |
:: This is my install directory. By default it's installed in C:\Program Files (x86)\Steam\steamapps\common\PUBG\TslGame\Content\Movies | |
set "directory=C:\SteamLibrary\steamapps\common\PUBG\TslGame\Content\Movies" | |
:: Define the paths to the files | |
set "file1=%directory%\LicenseScreen.mp4" | |
set "file2=%directory%\LoadingScreen.mp4" | |
:: Call the function for each of the files | |
call :processFile "%file1%" | |
call :processFile "%file2%" | |
goto :eof | |
:processFile | |
set "file=%~1" | |
if not exist "%file%" ( | |
echo The file %file% does not exist. | |
exit /b | |
) | |
set "bakFile=%file%.bak" | |
:: Check if the .bak file exists and delete it | |
if exist "%bakFile%" ( | |
del /F /Q "%bakFile%" | |
) | |
:: Rename the .mp4 file to .mp4.bak | |
ren "%file%" "%~nx1.bak" | |
goto :eof |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment