Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This should give you what you asked for. But it seems like the diff command you specified is missing a reference to the project.</p> <p>This solution should work even if the file name contains spaces, !, ;, or any special characters like &amp; or ^.</p> <pre><code>@echo off setlocal disableDelayedExpansion for /f "delims=*" %%A in ('ss.exe history $/myproject -Vd04/01/2012~01/01/2012 -R ^| findstr /b "***** Version"') do ( set "ln=%%A" setlocal enableDelayedExpansion if "!ln:~0,1!"==" " ( for /f "eol=: delims=" %%F in ("!ln:~1!") do ( endlocal set "file=%%~nxF" ) ) else ( for /f "tokens=2 delims= " %%V in ("!ln!") do ( set /a "version1=%%V, version0=version1-1" ss.exe dif -DS "!file!" -V!version0!~!version1! endlocal ) ) ) </code></pre> <p>Here is a version that adds the project information from the "Checked in" line</p> <pre><code>@echo off setlocal disableDelayedExpansion for /f "delims=*" %%A in ('ss.exe history $/myproject -Vd04/01/2012~01/01/2012 -R ^| findstr /b "***** Version Checked"') do ( set "ln=%%A" setlocal enableDelayedExpansion if "!ln:~0,1!"==" " ( for /f "eol=: delims=" %%F in ("!ln:~1!") do ( endlocal set "file=%%~nxF" ) ) else if "!ln:~0,1!"=="V" ( for /f "tokens=2 delims= " %%V in ("!ln!") do ( endlocal set /a "version1=%%V, version0=version1-1" ) ) else ( for /f "tokens=2* delims= " %%B in ("!ln!") do ( endlocal set "proj=%%C" setlocal enableDelayedExpansion ss.exe dif -DS "!proj!/!file!" -V!version0!~!version1! endlocal ) ) ) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload