Update prefsCleaner.bat
This commit is contained in:
parent
8fa3a9db6b
commit
fdac8fba6a
@ -65,18 +65,16 @@ IF NOT ERRORLEVEL 1 (
|
|||||||
GOTO :EOF
|
GOTO :EOF
|
||||||
REM ######### Cleanup Function ##########
|
REM ######### Cleanup Function ##########
|
||||||
:cleanup
|
:cleanup
|
||||||
|
FOR /F tokens^=2^ delims^=^'^" %%G IN ('FINDSTR /R /C:"^[^\"']*user_pref[ ]*\([ ]*[\"'][^\"']*[\"'][ ]*," user.js') DO (
|
||||||
|
IF NOT ""=="%%G" (SET "[%%G]=1")
|
||||||
|
)
|
||||||
(
|
(
|
||||||
FOR /F tokens^=2^ delims^=^'^" %%G IN ('FINDSTR /R /C:"^[^\"']*user_pref[ ]*\([ ]*[\"'][^\"']*[\"'][ ]*," user.js') DO (
|
|
||||||
IF NOT ""=="%%G" (SET "[%%G]=1")
|
|
||||||
)
|
|
||||||
FOR /F "tokens=1,* delims=:" %%G IN ('FINDSTR /N "^" prefs.js') DO (
|
FOR /F "tokens=1,* delims=:" %%G IN ('FINDSTR /N "^" prefs.js') DO (
|
||||||
IF ""=="%%H" (
|
IF ""=="%%H" (
|
||||||
ECHO:
|
ECHO:
|
||||||
) ELSE (
|
) ELSE (
|
||||||
FOR /F tokens^=1^,2^ delims^=^" %%I IN ("%%H") DO (
|
FOR /F tokens^=1^,2^ delims^=^"^' %%I IN ("%%H") DO (
|
||||||
IF NOT DEFINED [%%J] (
|
IF NOT DEFINED [%%J] (ECHO:%%H)
|
||||||
ECHO:%%H
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user