DBRepair-Windows: Fix Date/Time stamp

Date would have spaces in name on some systems.
This commit is contained in:
ChuckPa 2023-01-13 20:10:14 -05:00
parent b600d52e13
commit 249f36a668
No known key found for this signature in database
GPG Key ID: 3CE28A0F6BC31B5B
2 changed files with 13 additions and 2 deletions

View File

@ -9,8 +9,19 @@ REM
REM 1. This is stable working software but not "Released" software. Development will continue. REM 1. This is stable working software but not "Released" software. Development will continue.
REM 2. You must ensure variable PlexData points to your databases. (there is no automatic detection at this time) REM 2. You must ensure variable PlexData points to your databases. (there is no automatic detection at this time)
REM REM
REM System format controls ^Roll_eyes^ REM ### Extract the Date and Time
set TimeStamp=%date:~10,4%-%date:~+4,2%-%date:~+7,2%_%time:~0,2%.%time:~3,2%.%time:~6,2% set Day=%DATE:~0,2%
set Month=%DATE:~3,2%
set Year=%DATE:~6,4%
set Hour=%TIME:~0,2%
set Min=%TIME:~3,2%
set Sec=%TIME:~6,2%
REM ## Remove spaces from Hour ##
set Hour=%Hour: =%
REM ## Set TimeStamp ##
set TimeStamp=%Year%-%Month%-%Day%_%Hour%-%Min%-%Sec%
REM These assume PMS is in the default location REM These assume PMS is in the default location
set "PlexData=%LOCALAPPDATA%\Plex Media Server\Plug-in Support\Databases" set "PlexData=%LOCALAPPDATA%\Plex Media Server\Plug-in Support\Databases"

Binary file not shown.