-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.bat
55 lines (45 loc) · 1.35 KB
/
start.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
@echo off
setlocal
REM Define the path to the executable
set EXE_PATH=cs2-dumper.exe
REM Check if cs2.exe is running
tasklist /FI "IMAGENAME eq cs2.exe" 2>NUL | find /I /N "cs2.exe" >NUL
if "%ERRORLEVEL%"=="0" (
echo cs2.exe is running.
) else (
echo cs2.exe is not running.
pause
exit /b 1
)
REM Check if the executable exists
if not exist "%EXE_PATH%" (
echo Executable %EXE_PATH% not found.
pause
exit /b 1
)
REM Run the executable
echo Running %EXE_PATH%...
"%EXE_PATH%"
REM Check if the executable ran successfully
if %ERRORLEVEL% equ 0 (
echo Offset dumper ran successfully.
) else (
echo There was an error running the executable.
pause
exit /b 1
)
::: ______ ______ ______ ______ __
::: /\ ___\ /\ __ \ /\ == \ /\ __ \ /\ \
::: \ \ \____ \ \ \/\ \ \ \ __< \ \ __ \ \ \ \____
::: \ \_____\ \ \_____\ \ \_\ \_\ \ \_\ \_\ \ \_____\
::: \/_____/ \/_____/ \/_/ /_/ \/_/\/_/ \/_____/
for /f "delims=: tokens=*" %%A in ('findstr /b ::: "%~f0"') do @echo %%A
REM Navigate to the directory and activate conda environment
cd "..\coral"
call activate coral
REM Copy the Local URL to the clipboard
echo http://localhost:8501 | clip
REM Run the Streamlit app
streamlit run app.py --server.headless true
pause
endlocal