Created
November 14, 2020 00:00
-
-
Save AntonioCS/a5a42c123871e47ba1801bff2b1394ab to your computer and use it in GitHub Desktop.
Create a backup of the DS3 save file in the format DS30000.sl2_YEAR-MONTH-DAY_(hh-mm-ss)
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 | |
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set DateTime=%%a | |
set Yr=%DateTime:~0,4% | |
set Mon=%DateTime:~4,2% | |
set Day=%DateTime:~6,2% | |
set Hr=%DateTime:~8,2% | |
set Min=%DateTime:~10,2% | |
set Sec=%DateTime:~12,2% | |
::Ensure this hash is the correct one | |
set DS3_UserHash=<YOUR_USERNAME> | |
set DS3_UserSettingsFolder=%APPDATA%\\DarkSoulsIII\\%DS3_UserHash% | |
set DS3_FileName=DS30000.sl2 | |
set DS3_CurrentFileFullPath=%DS3_UserSettingsFolder%\\%DS3_FileName% | |
set DS3_Backup=%DS3_FileName%_%Yr%-%Mon%-%Day%_(%Hr%-%Min%-%Sec%) | |
set DS3_BackUpFolder=<BACKUPS_FOLDER_PATH> | |
set DS3_BackUpFileFullPath=%DS3_BackUpFolder%\\%DS3_Backup% | |
if exist "%DS3_CurrentFileFullPath%" ( | |
copy "%DS3_CurrentFileFullPath%" "%DS3_BackUpFileFullPath%" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment