Created
July 11, 2022 01:38
-
-
Save mtemel123/f102986c956e53a82677efce1be40e29 to your computer and use it in GitHub Desktop.
drag-drop file different
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
echo 'files : %1 %2' | |
echo 1- visual studio 2- vscode 3- winmerge | |
set /p k=Enter Num: | |
echo %id% | |
if "%k%" == "1" (goto vsu) | |
if "%k%" == "2" (goto vsc) | |
if "%k%" == "3" (goto vme) | |
:vsu | |
setlocal | |
set vspath=C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE | |
start "Compare files" /B /MIN "%vspath%\devenv.exe" /diff %2 %1 First:'%2' Second:'%1' | |
exit | |
:vsc | |
start code --diff %2 %1 | |
exit | |
:vme | |
start "WinMerge" /B "C:\Program Files\WinMerge\WinMergeU.exe" /u /wl /e "%1" "%2" /dl "%1" /dr "%2" | |
exit | |
# res: https://github.com/VerifyTests/DiffEngine/blob/26445e19eee0b35ac4eb45ab47a7f8394b16257c/docs/diff-tool.md | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment