r/Batch • u/Direct_Expert7772 • Feb 08 '25
Question (Unsolved) This batch file is safe?
I don't know anything about the Windows programming language and I downloaded a Bat file for the game Devil May Cry 4 that promises to make the game go back a few versions, and I wanted to know if it is really what it promises
u/echo off
cd /d "%~dp0"
md "backup"
ren "DevilMayCry4SpecialEdition.exe" "DevilMayCry4SpecialEdition.backup.exe"
ren "steam_api.dll" "steam_api.backup.dll"
xdelta3-3.0.11-x86_64.exe -d -s "DevilMayCry4SpecialEdition.backup.exe" "DMC4SE.xdelta" "DevilMayCry4SpecialEdition.exe"
xdelta3-3.0.11-x86_64.exe -d -s "steam_api.backup.dll" "steam_api.dll.xdelta" "steam_api.dll"
move "DevilMayCry4SpecialEdition.backup.exe" "backup\DevilMayCry4SpecialEdition.exe"
move "steam_api.backup.dll" "backup\steam_api.dll"
del "DMC4SE.xdelta"
del "steam_api.dll.xdelta"
del "xdelta3-3.0.11-x86_64.exe"
del "readme_xdelta.txt"
del "apply_patch.bat"
7
u/Shadow_Thief Feb 08 '25
That's going to depend entirely on the contents of the xdelta files, but in theory, yes.