mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
adding %cmdcmdline%, example how to use it echo %CMDCMDLINE%
svn path=/trunk/; revision=16494
This commit is contained in:
parent
497eba8519
commit
610ec85471
1 changed files with 13 additions and 1 deletions
|
@ -1028,6 +1028,15 @@ ProcessInput (BOOL bFlag)
|
|||
cp = _stpcpy (cp, szRand);
|
||||
}
|
||||
|
||||
/* %CMDCMDLINE% */
|
||||
else if (_tcsicmp(ip,_T("cmdcmdline")) ==0)
|
||||
{
|
||||
TCHAR *pargv;
|
||||
/* Get random number */
|
||||
pargv = GetCommandLine();
|
||||
cp = _stpcpy (cp, pargv);
|
||||
}
|
||||
|
||||
|
||||
/* %ERRORLEVEL% */
|
||||
else if (_tcsicmp(ip,_T("errorlevel")) ==0)
|
||||
|
@ -1494,6 +1503,7 @@ int main (int argc, char *argv[])
|
|||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
SetFileApisToOEM();
|
||||
InputCodePage= 0;
|
||||
OutputCodePage = 0;
|
||||
|
@ -1519,9 +1529,11 @@ int main (int argc, char *argv[])
|
|||
/* call prompt routine */
|
||||
nExitCode = ProcessInput(FALSE);
|
||||
|
||||
|
||||
/* do the cleanup */
|
||||
Cleanup(argc, argv);
|
||||
|
||||
|
||||
return(nExitCode);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue