-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.bat
39 lines (34 loc) · 932 Bytes
/
check.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
@echo off
rem Check if Java is installed
java -version >nul 2>&1
if errorlevel 1 (
echo Java is not installed. Starting installation...
REM Add commands to install Java here
) else (
echo Java is installed.
)
rem Check if Python is installed
python --version >nul 2>&1
if errorlevel 1 (
echo Python is not installed. Starting installation...
REM Add commands to install Python here
) else (
echo Python is installed.
)
rem Check if C compiler is installed
gcc --version >nul 2>&1
if errorlevel 1 (
echo C compiler is not installed. Starting installation...
REM Add commands to install C compiler here
) else (
echo C compiler is installed.
)
rem Check if C++ compiler is installed
g++ --version >nul 2>&1
if errorlevel 1 (
echo C++ compiler is not installed. Starting installation...
REM Add commands to install C++ compiler here
) else (
echo C++ compiler is installed.
)
pause