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)
argv = CommandLineToArgvW(GetCommandLineW(), &argc);
#endif
#endif
+
SetFileApisToOEM();
InputCodePage= 0;
InputCodePage= GetConsoleCP();
OutputCodePage = GetConsoleOutputCP();
CMD_ModuleHandle = GetModuleHandle(NULL);
-
+
/* check switches on command-line */
Initialize(argc, argv);
/* call prompt routine */
nExitCode = ProcessInput(FALSE);
+
/* do the cleanup */
Cleanup(argc, argv);
+
return(nExitCode);
}