-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathstart_command_shell.bat
More file actions
30 lines (24 loc) · 895 Bytes
/
start_command_shell.bat
File metadata and controls
30 lines (24 loc) · 895 Bytes
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
@echo off
rem ===================================================================
rem Console Start Script
rem ===================================================================
call %~dp0bin\mount_devpack.bat
cd /d %WORK_DRIVE%:\
if "%DEVPACK_CONSOLE_FOLDER%" == "" (
set START_DIR=%WORK_DRIVE%:\\
) else (
set START_DIR=%DEVPACK_CONSOLE_FOLDER%
)
if "%1" == "-embed" (
%WORK_DRIVE%:\bin\shell.bat %2 %3 %4 %5 %6
)
if "%DEVPACK_CONSOLE%" == "console" if exist %TOOLS_DIR%\console (
start %TOOLS_DIR%\console\conemu.exe -reuse -dir "%START_DIR%" -run cmd ""/K call %WORK_DRIVE%:\setenv.bat""
goto :EOF
)
if "%DEVPACK_CONSOLE%" == "terminal" (
start wt nt --title "%DEVPACK_CONSOLE_NAME%" --startingDirectory "%START_DIR%" cmd ""/K call %WORK_DRIVE%:\setenv.bat"
goto :EOF
)
start "%DEVPACK_CONSOLE_NAME%" cmd /K call %WORK_DRIVE%:\setenv.bat
:EOF