-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathedsim51di_run.bat
51 lines (45 loc) · 1.42 KB
/
edsim51di_run.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
set ProgramDir=F:\program
set PerlPath=%ProgramDir%\Perl\bin
set NASMPath=%ProgramDir%\nasm
set CMakePath=%ProgramDir%\cmake\bin
set PythonHome=%ProgramDir%\python
set PATH=%NASMPath%;%PerlPath%;%CMakePath%;%PythonHome%;%PATH%
set CurDir=%~dp0
set ProjDir=%CurDir:~0,-1%
echo ProjDir %ProjDir%
call :edsim51di_run
pause
goto :eof
:edsim51di_run
setlocal EnableDelayedExpansion
call :color_text 2f "++++++++++++++edsim51di_run++++++++++++++"
set JAVA_HOME=%ProgramDir%\Java\jdk-1.8
set CLASSPATH=.;%ProgramDir%\Java\jdk-1.8\lib;%ProgramDir%\Java\jdk-1.8\lib\tools.jar;
set PATH=%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%PATH%;
where java
java -jar F:\programs\edsim51di\edsim51di.jar
goto :eof
:QuerySystemEnv
setlocal EnableDelayedExpansion
reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment"
reg query "HKEY_CURRENT_USER\Environment"
endlocal
goto :eof
@rem YellowBackground 6f ef
@rem BlueBackground 9f bf 3f
@rem GreenBackground af 2f
@rem RedBackground 4f cf
@rem GreyBackground 7f 8f
@rem PurpleBackground 5f
:color_text
setlocal EnableDelayedExpansion
for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
set "DEL=%%a"
)
echo off
<nul set /p ".=%DEL%" > "%~2"
findstr /v /a:%1 /R "^$" "%~2" nul
del "%~2" > nul 2>&1
endlocal
echo .
goto :eof