ConOutChar (_T(' '));
break;
- case _T('T'):
- {
+ case _T('T'):
+ {
SYSTEMTIME t;
- GetSystemTime(&t);
+ GetSystemTime(&t);
ConOutPrintf(_T("%02d%c%02d%c%02d%c%02d\n"),t.wHour, cTimeSeparator,t.wMinute , cTimeSeparator,
t.wSecond , cDecimalSeparator, t.wMilliseconds );
}
break;
-
+
case _T('V'):
switch (osvi.dwPlatformId)
{
#ifdef INCLUDE_CMD_PROMPT
INT cmd_prompt (LPTSTR cmd, LPTSTR param)
-{
+{
if (!_tcsncmp (param, _T("/?"), 2))
{
ConOutResPaging(TRUE,STRING_PROMPT_HELP1);
/* if it is null, then it needs to set to default,
because that means the user entered "prompt" only.
so even if param is null you _must_ still set prompt
- to the default. There seems to be some kinda difference
- between winxp and 2k in this matter and this way will
+ to the default. There seems to be some kinda difference
+ between winxp and 2k in this matter and this way will
cover both. Do not use fixed size of szParam for param the buffer are 8192bytes
and will later change to dymatic buffer */
TCHAR szParam[5];
_tcscpy(szParam,_T("$P$G"));
if (!SetEnvironmentVariable (_T("PROMPT"),szParam))
- return 1;
+ return 1;
}
-
-
+
+
return 0;
}
#endif