-
Notifications
You must be signed in to change notification settings - Fork 5
/
Check_INFO_save.bat
70 lines (56 loc) · 1.66 KB
/
Check_INFO_save.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
@echo off
rem 清空已存在的 INFO.txt 文件
echo. > "INFO.txt"
echo Checking...
echo --- Console used encoding --- >> "INFO.txt"
chcp >> "INFO.txt"
echo --- System version --- >> "INFO.txt"
ver >> "INFO.txt"
echo --- System Architecture --- >> "INFO.txt"
set TheBit=x%PROCESSOR_ARCHITECTURE:~-2%
echo %TheBit% >> "INFO.txt"
echo --- Fufu Tools version --- >> "INFO.txt"
for /f "delims=[" %%i in (Version) do (
echo %%i >> "INFO.txt"
)
echo --- Installed library files --- >> "INFO.txt"
pip list >> "INFO.txt"
echo --- Directory where Fufu Tools is located --- >> "INFO.txt"
echo %cd% >> "INFO.txt"
echo --- Network connection status --- >> "INFO.txt"
set url=www.baidu.com
ping -6 %url% >nul
if %errorlevel% equ 0 (
echo Connection normal >> "INFO.txt"
echo [INFO] Using IPv6. >> "INFO.txt"
) else (
echo Connect failed >> "INFO.txt"
echo [INFO] Using IPv6. >> "INFO.txt"
)
ping -4 %url% >nul
if %errorlevel% equ 0 (
echo Connection normal >> "INFO.txt"
echo [INFO] Using IPv4. >> "INFO.txt"
) else (
echo Connect failed >> "INFO.txt"
echo [INFO] Using IPv4. >> "INFO.txt"
)
echo --- Github connection status --- >> "INFO.txt"
set url=www.github.com
ping %url% >nul
if %errorlevel% equ 0 (
echo Connection normal >> "INFO.txt"
) else (
echo Connect failed >> "INFO.txt"
)
echo --- limits of authority --- >> "INFO.txt"
net.exe session 1>NUL 2>NUL && (
echo Administrator. >> "INFO.txt"
) || (
echo Non administrator. >> "INFO.txt"
)
echo --- System environment --- >> "INFO.txt"
python --version >> "INFO.txt"
pip --version >> "INFO.txt"
echo The information has been saved to INFO.txt in the directory of the Fufu Tools.
pause