mirror of
				https://github.com/cmderdev/cmder.git
				synced 2025-11-04 11:22:13 +08:00 
			
		
		
		
	Fix #2740
This commit is contained in:
		@@ -4,8 +4,12 @@ SET CMDER_ROOT=%~dp0
 | 
			
		||||
:: Remove Trailing '\'
 | 
			
		||||
@if "%CMDER_ROOT:~-1%" == "\" SET CMDER_ROOT=%CMDER_ROOT:~0,-1%
 | 
			
		||||
 | 
			
		||||
if not exist "%CMDER_ROOT%\config\user_ConEmu.xml" (
 | 
			
		||||
  copy "%CMDER_ROOT%\vendor\ConEmu.xml.default" "%CMDER_ROOT%\config\user_ConEmu.xml"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
if exist "%~1" (
 | 
			
		||||
    start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%~1"
 | 
			
		||||
) else (
 | 
			
		||||
    start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%CMDER_ROOT%\config\ConEmu.xml"
 | 
			
		||||
    start %~dp0/vendor/conemu-maximus5/ConEmu.exe /Icon "%CMDER_ROOT%\icons\cmder.ico" /Title Cmder /LoadCfgFile "%CMDER_ROOT%\config\user_ConEmu.xml"
 | 
			
		||||
)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								vendor/lib/lib_path.cmd
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								vendor/lib/lib_path.cmd
									
									
									
									
										vendored
									
									
								
							@@ -121,11 +121,11 @@ exit /b
 | 
			
		||||
    exit /b
 | 
			
		||||
 | 
			
		||||
    :toolong
 | 
			
		||||
      echo "%OLD_PATH%">tempfileA
 | 
			
		||||
      echo "%PATH%">tempfileB
 | 
			
		||||
      fc /b tempfileA tempfileB 2>nul 1>nul
 | 
			
		||||
      if errorlevel 1 ( del tempfileA & del tempfileB & goto :changed )
 | 
			
		||||
      del tempfileA & del tempfileB
 | 
			
		||||
      echo "%OLD_PATH%">"%temp%\tempfileA"
 | 
			
		||||
      echo "%PATH%">"%temp%\tempfileB"
 | 
			
		||||
      fc /b "%temp%\tempfileA" "%temp%\tempfileB" 2>nul 1>nul
 | 
			
		||||
      if errorlevel 1 ( del "%temp%\tempfileA" & del "%temp%\tempfileB" & goto :changed )
 | 
			
		||||
      del "%temp%\tempfileA" & del "%temp%\tempfileB"
 | 
			
		||||
      exit /b
 | 
			
		||||
 | 
			
		||||
    :changed
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user