mirror of
https://github.com/arkenfox/user.js.git
synced 2025-04-30 14:03:40 +02:00
Update prefsCleaner.bat
This commit is contained in:
parent
b0ba1d2cb9
commit
39717ae45e
1 changed files with 3 additions and 3 deletions
|
@ -30,12 +30,12 @@ IF NOT EXIST "user.js" (CALL :abort "user.js not found in the current directory.
|
||||||
IF NOT EXIST "prefs.js" (CALL :abort "prefs.js not found in the current directory." 30)
|
IF NOT EXIST "prefs.js" (CALL :abort "prefs.js not found in the current directory." 30)
|
||||||
CALL :strlenCheck
|
CALL :strlenCheck
|
||||||
CALL :FFcheck
|
CALL :FFcheck
|
||||||
|
|
||||||
CALL :message "Backing up prefs.js..."
|
CALL :message "Backing up prefs.js..."
|
||||||
FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic os get LocalDateTime /VALUE 2^>NUL`) DO IF '.%%i.'=='.LocalDateTime.' SET ldt=%%j
|
FOR /F "usebackq tokens=1,2 delims==" %%i IN (`wmic os get LocalDateTime /VALUE 2^>NUL`) DO IF '.%%i.'=='.LocalDateTime.' SET ldt=%%j
|
||||||
SET ldt=%ldt:~0,4%-%ldt:~4,2%-%ldt:~6,2%_%ldt:~8,2%%ldt:~10,2%
|
SET ldt=%ldt:~0,8%_%ldt:~8,6%
|
||||||
REM For ISO format use:
|
|
||||||
REM SET ldt=%ldt:~0,4%%ldt:~4,2%%ldt:~6,2%T%ldt:~8,2%%ldt:~10,2%%ldt:~12,6%
|
|
||||||
COPY /B /V /Y prefs.js "prefs-backup-%ldt%.js"
|
COPY /B /V /Y prefs.js "prefs-backup-%ldt%.js"
|
||||||
|
|
||||||
CALL :message "Cleaning prefs.js..."
|
CALL :message "Cleaning prefs.js..."
|
||||||
CALL :cleanup
|
CALL :cleanup
|
||||||
CALL :message "All done!"
|
CALL :message "All done!"
|
||||||
|
|
Loading…
Add table
Reference in a new issue