-
Notifications
You must be signed in to change notification settings - Fork 0
/
extra_fra.bat
83 lines (69 loc) · 2.21 KB
/
extra_fra.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
chcp 65001
@echo off
color 1F
rem GetUAC
echo Getting UAC...
if exist "%SystemRoot%\SysWOW64" path %path%;%windir%\SysNative;%SystemRoot%\SysWOW64;%~dp0
bcdedit >nul
if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto UACAdmin)
:UACPrompt
%1 start "" mshta vbscript:createobject("shell.application").shellexecute("""%~0""","::",,"runas",1)(window.close)&exit
exit /B
:UACAdmin
cd /d "%~dp0"
echo Get UAC Succeed.
cls
rem FlashReable
color 27
echo " _____ _ ____ ____ _ ____ _____ ____ ____ _ _____"
echo "/ // \ / _ \/ ___\/ \ /| / __\/ __// _ \/ __\/ \ / __/"
echo "| __\| | | / \|| \| |_|| | \/|| \ | / \|| | //| | | \ "
echo "| | | |_/\| |-||\___ || | || | /| /_ | |-||| |_\\| |_/\| /_ "
echo "\_/ \____/\_/ \|\____/\_/ \| \_/\_\\____\\_/ \|\____/\____/\____\"
echo. & echo.
echo -----
echo Flash Reable Entra - Delete All the Settings.sol.
echo Author:RunLing
echo Github:https://github.com/RunlingDev/FlashReable
echo -----
color 4F
echo Disclaimer:
echo This script will search and delete ALL file named "settings.sol".
echo IT MIGHT CAUSE UNKONWN PROBLEM.
echo If so, the writer WON'T take responsibility
echo Continue?Exit by close this window.
echo.
echo 免责声明:
echo 这个脚本将全盘遍历并删除所有名为"Settings.sol"的文件
echo 这可能导致文件丢失等未知问题
echo 如果您选择继续,出现的问题作者概不负责
echo 是否继续?
pause
echo -----
color 27
set opwd=%cd%
for %%i in (C:\ D:\ E:\ F:\ G:\ H:\ I:\ J:\ K:\) do (
if exist %%i (
echo Searching for %%i ...
echo It takes time. Be patiently.
echo 这可能需要一段时间。请耐心等待。
cd /d %%i
for /f "delims=" %%a in ('dir /S/b "settings.sol"') do (
echo Find "settings.sol":%%a
echo Overwriting...
echo 2>"%%a"
attrib "%%a" +r
echo Done.
)
echo -----
)
)
cd /d %opwd%
echo Done.The "settings.sol" is now overwritten.
echo -----
color 1F
echo Settings.sol Overwriting Succeed.Congratulations!
echo Thanks for your using.
echo Note:You'd better run again the common version.
echo https://github.com/RunlingDev/FlashReable/releases/download/v1.1/flashreable.bat
pause