add %CMDEXTVERSION% example to use it echo %CMDEXTVERSION% the value are hardcode to 2. for it is that value ms win2k / winxp report back. thx arty to test it in win xp.

svn path=/trunk/; revision=16495
This commit is contained in:
Magnus Olsen 2005-07-07 19:26:46 +00:00
parent 610ec85471
commit bff830321b

View file

@ -1037,7 +1037,15 @@ ProcessInput (BOOL bFlag)
cp = _stpcpy (cp, pargv);
}
/* %CMDEXTVERSION% */
else if (_tcsicmp(ip,_T("cmdextversion")) ==0)
{
TCHAR szVER[40];
/* Set version number to 2 */
_itot(2,szVER,10);
cp = _stpcpy (cp, szVER);
}
/* %ERRORLEVEL% */
else if (_tcsicmp(ip,_T("errorlevel")) ==0)
{