[ros-diffs] [greatlrd] 16495: 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.
greatlrd at svn.reactos.com
greatlrd at svn.reactos.com
Thu Jul 7 21:26:57 CEST 2005
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.
Modified: trunk/reactos/subsys/system/cmd/cmd.c
_____
Modified: trunk/reactos/subsys/system/cmd/cmd.c
--- trunk/reactos/subsys/system/cmd/cmd.c 2005-07-07 19:16:46 UTC
(rev 16494)
+++ trunk/reactos/subsys/system/cmd/cmd.c 2005-07-07 19:26:46 UTC
(rev 16495)
@@ -1037,7 +1037,15 @@
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)
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20050707/7891f65d/attachment.html
More information about the Ros-diffs
mailing list