-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminibr.bat
68 lines (51 loc) · 990 Bytes
/
minibr.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
@echo off
if "%os%"=="Windows NT" (setlocal)
set App="%APPDATA%\miniworldgameguan110\microminiforwebbrowser.exe"
set App2="%APPDATA%\miniworldgameguan110\microminiforwebbrowserold.exe"
set argC=0
for %%x in (%*) do (
set /a argC+=1
)
echo [INFO] Successfully got argc
if %argC%==0 (
echo minibr Address [-o]
echo -o: Use IE kernel
goto finish
)
if %argC%==2 (
goto t1
)
goto f1
:t1
if %1==-o (
goto firsto
)
goto secondproc
:firsto
echo %App2% -%2>exec.bat
echo [INFO] Found -o at argv[1]
echo [WARN] Running IE kernel.
goto execr
:secondproc
if %2==-o (
goto normal
) else (
goto error
)
:normal
echo %App2% -%1>exec.bat
echo [INFO] Found -o at argv[2]
echo [WARN] Running IE kernel.
goto execr
:f1
echo %App% -%1>exec.bat
:execr
echo Executing...
exec.bat
del exec.bat
goto finish
:error
echo [ERROR] Unknown args.
goto finish
:finish
if "%os%"=="Windows NT" (endlocal)