cmder/Cmder.bat

16 lines
562 B
Batchfile
Raw Normal View History

2013-12-25 03:45:43 +08:00
@echo off
SET CMDER_ROOT=%~dp0
2016-10-31 07:22:29 +08:00
:: Remove Trailing '\'
@if "%CMDER_ROOT:~-1%" == "\" SET CMDER_ROOT=%CMDER_ROOT:~0,-1%
2022-09-01 21:00:43 +08:00
if not exist "%CMDER_ROOT%\config\user_ConEmu.xml" (
2022-10-25 01:24:24 +08:00
copy "%CMDER_ROOT%\vendor\ConEmu.xml.default" "%CMDER_ROOT%\config\user_ConEmu.xml"
2022-09-01 21:00:43 +08:00
)
if exist "%~1" (
start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%~1"
) else (
2022-09-01 21:00:43 +08:00
start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%CMDER_ROOT%\config\user_ConEmu.xml"
2015-11-15 02:15:42 +08:00
)