if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_ALIAS_HELP);
+ ConOutResPaging(TRUE,STRING_ALIAS_HELP);
return 0;
}
/* print help */
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_ATTRIB_HELP);
+ ConOutResPaging(TRUE,STRING_ATTRIB_HELP);
return 0;
}
{
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- ConOutResPuts(STRING_BEEP_HELP);
+ ConOutResPaging(TRUE,STRING_BEEP_HELP);
return 0;
}
#endif
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_CALL_HELP);
+ ConOutResPaging(TRUE,STRING_CALL_HELP);
return 0;
}
/* print help */
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_CHCP_HELP);
+ ConOutResPaging(TRUE,STRING_CHCP_HELP);
return 0;
}
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- ConOutResPuts(STRING_CHOICE_HELP);
+ ConOutResPaging(TRUE,STRING_CHOICE_HELP);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_CLS_HELP);
+ ConOutResPaging(TRUE,STRING_CLS_HELP);
return 0;
}
if (argc >= 2 && !_tcsncmp (argv[1], _T("/?"), 2))
{
- ConOutResPuts(STRING_CMD_HELP8);
+ ConOutResPaging(TRUE,STRING_CMD_HELP8);
ExitProcess(0);
}
SetConsoleMode (hIn, ENABLE_PROCESSED_INPUT);
VOID ConOutResPuts (UINT resID);
VOID ConErrResPuts (UINT resID);
+VOID ConOutResPaging(BOOL NewPage, UINT resID);
/* Prototypes for COPY.C */
INT cmd_copy (LPTSTR, LPTSTR);
VOID PrintCommandListDetail (VOID)
{
- ConOutResPuts(STRING_HELP1);
- ConOutResPuts(STRING_HELP2);
+ ConOutResPaging(TRUE,STRING_HELP1);
+ ConOutResPaging(FALSE,STRING_HELP2);
}
/* EOF */
#ifdef INCLUDE_CMD_COLOR
-static VOID ColorHelp (VOID)
-{
- ConOutResPuts(STRING_COLOR_HELP1);
-}
+
VOID SetScreenColor (WORD wColor, BOOL bNoFill)
if (_tcsncmp (rest, _T("/?"), 2) == 0)
{
- ColorHelp ();
+ ConOutResPaging(TRUE,STRING_COLOR_HELP1);
return 0;
}
#endif
}
+VOID ConOutResPaging(BOOL NewPage, UINT resID)
+{
+ TCHAR szMsg[RC_STRING_MAX_SIZE];
+ LoadString(CMD_ModuleHandle, resID, szMsg, RC_STRING_MAX_SIZE);
+ ConOutPrintfPaging(NewPage, szMsg);
+}
+
VOID ConOutResPuts (UINT resID)
{
TCHAR szMsg[RC_STRING_MAX_SIZE];
if (!_tcsncmp (rest, _T("/?"), 2))
{
- ConOutResPuts(STRING_COPY_HELP2);
+ ConOutResPaging(TRUE,STRING_COPY_HELP2);
return 1;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_DATE_HELP4);
+ ConOutResPaging(TRUE,STRING_DATE_HELP4);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_DEL_HELP1);
+ ConOutResPaging(TRUE,STRING_DEL_HELP1);
return 0;
}
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- ConOutResPuts(STRING_DELAY_HELP);
+ ConOutResPaging(TRUE,STRING_DELAY_HELP);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_ECHO_HELP4);
+ ConOutResPaging(TRUE,STRING_ECHO_HELP4);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_FOR_HELP1);
+ ConOutResPaging(TRUE,STRING_FOR_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_FREE_HELP2);
+ ConOutResPaging(TRUE,STRING_FREE_HELP2);
return 0;
}
#endif
if (!_tcsncmp (param, _T("/?"), 2))
- {
- LoadString(CMD_ModuleHandle, STRING_GOTO_HELP1, szMsg, RC_STRING_MAX_SIZE);
- ConOutResPuts(STRING_GOTO_HELP1);
+ {
+ ConOutResPaging(TRUE,STRING_GOTO_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_IF_HELP1);
+ ConOutResPaging(TRUE,STRING_IF_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_CD_HELP);
+ ConOutResPaging(TRUE,STRING_CD_HELP);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_MKDIR_HELP);
+ ConOutResPaging(TRUE,STRING_MKDIR_HELP);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_RMDIR_HELP);
+ ConOutResPaging(TRUE,STRING_RMDIR_HELP);
return 0;
}
INT CommandExit (LPTSTR cmd, LPTSTR param)
{
if (!_tcsncmp (param, _T("/?"), 2))
- ConOutResPuts(STRING_EXIT_HELP);
+ ConOutResPaging(TRUE,STRING_EXIT_HELP);
if (bc != NULL && _tcsnicmp(param,_T("/b"),2) == 0)
{
{
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_REM_HELP);
+ ConOutResPaging(TRUE,STRING_REM_HELP);
}
return 0;
/* print help */
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_LABEL_HELP1);
+ ConOutResPaging(TRUE,STRING_LABEL_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_MEMMORY_HELP1);
+ ConOutResPaging(TRUE,STRING_MEMMORY_HELP1);
return 0;
}
" /-Y\n"
"..."));
#else
- ConOutResPuts(STRING_MOVE_HELP2);
+ ConOutResPaging(TRUE,STRING_MOVE_HELP2);
#endif
return 0;
}
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- ConOutResPuts(STRING_MSGBOX_HELP);
+ ConOutResPaging(TRUE,STRING_MSGBOX_HELP);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_PATH_HELP1);
+ ConOutResPaging(TRUE,STRING_PATH_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_PAUSE_HELP1);
+ ConOutResPaging(TRUE,STRING_PAUSE_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_PROMPT_HELP1);
+ ConOutResPaging(TRUE,STRING_PROMPT_HELP1);
#ifdef FEATURE_DIRECTORY_STACK
- ConOutResPuts(STRING_PROMPT_HELP2);
+ ConOutResPaging(FALSE,STRING_PROMPT_HELP2);
#endif
- ConOutResPuts(STRING_PROMPT_HELP3);
+ ConOutResPaging(FALSE,STRING_PROMPT_HELP3);
return 0;
}
if (!_tcsncmp(param, _T("/?"), 2))
{
- ConOutResPuts(STRING_REN_HELP1);
+ ConOutResPaging(TRUE,STRING_REN_HELP1);
return 0;
}
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- ConOutResPuts(STRING_SCREEN_HELP);
+ ConOutResPaging(TRUE,STRING_SCREEN_HELP);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_SET_HELP);
+ ConOutResPaging(TRUE,STRING_SET_HELP);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_SHIFT_HELP);
+ ConOutResPaging(TRUE,STRING_SHIFT_HELP);
return 0;
}
if (_tcsncmp (rest, _T("/?"), 2) == 0)
{
- ConOutResPuts(STRING_START_HELP1);
+ ConOutResPaging(TRUE,STRING_START_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_TIME_HELP1);
+ ConOutResPaging(TRUE,STRING_TIME_HELP1);
return 0;
}
/* Asking help? */
if (!_tcsncmp(param, _T("/?"), 2))
{
- ConOutResPuts(STRING_TITLE_HELP);
+ ConOutResPaging(TRUE,STRING_TITLE_HELP);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_TYPE_HELP1);
+ ConOutResPaging(TRUE,STRING_TYPE_HELP1);
return 0;
}
if (_tcsstr (param, _T("/?")) != NULL)
{
- ConOutResPuts(STRING_VERSION_HELP1);
+ ConOutResPaging(TRUE,STRING_VERSION_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_VERIFY_HELP1);
+ ConOutResPaging(TRUE,STRING_VERIFY_HELP1);
return 0;
}
if (!_tcsncmp (param, _T("/?"), 2))
{
- ConOutResPuts(STRING_VOL_HELP4);
+ ConOutResPaging(TRUE,STRING_VOL_HELP4);
return 0;
}
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- ConOutResPuts(STRING_WINDOW_HELP1);
+ ConOutResPaging(TRUE,STRING_WINDOW_HELP1);
return 0;
}
if (_tcsncmp (param, _T("/?"), 2) == 0)
{
- ConOutResPuts(STRING_WINDOW_HELP2);
+ ConOutResPaging(TRUE,STRING_WINDOW_HELP2);
return 0;
}