mirror of
https://github.com/cmderdev/cmder.git
synced 2025-06-15 14:17:50 +08:00
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%\cmder_lib_pathA"
|
||||
echo "%PATH%">"%temp%\cmder_lib_pathB"
|
||||
fc /b "%temp%\cmder_lib_pathA" "%temp%\cmder_lib_pathB" 2>nul 1>nul
|
||||
if errorlevel 1 ( del "%temp%\cmder_lib_pathA" & del "%temp%\cmder_lib_pathB" & goto :changed )
|
||||
del "%temp%\cmder_lib_pathA" & del "%temp%\cmder_lib_pathB"
|
||||
exit /b
|
||||
|
||||
:changed
|
||||
|
Reference in New Issue
Block a user