Skip to content

Instantly share code, notes, and snippets.

@mtemel123
Created July 11, 2022 01:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtemel123/f102986c956e53a82677efce1be40e29 to your computer and use it in GitHub Desktop.
Save mtemel123/f102986c956e53a82677efce1be40e29 to your computer and use it in GitHub Desktop.
drag-drop file different
@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