2006-02-16 23:23:37 +00:00
|
|
|
/*
|
|
|
|
* VERIFY.C - verify internal command.
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* History:
|
|
|
|
*
|
|
|
|
* 31 Jul 1998 (John P Price)
|
|
|
|
* started.
|
|
|
|
*
|
2007-05-05 11:32:25 +00:00
|
|
|
* 18-Jan-1999 (Eric Kohl)
|
2006-02-16 23:23:37 +00:00
|
|
|
* VERIFY is just a dummy under Win32; it only exists
|
|
|
|
* for compatibility!!!
|
|
|
|
*
|
2007-05-05 11:32:25 +00:00
|
|
|
* 20-Jan-1999 (Eric Kohl)
|
2006-02-16 23:23:37 +00:00
|
|
|
* Unicode and redirection ready!
|
|
|
|
*
|
2013-06-30 13:23:30 +00:00
|
|
|
* 30-Apr-2005 (Magnus Olsen <magnus@greatlord.com>)
|
2013-06-29 23:50:13 +00:00
|
|
|
* Remove all hardcoded strings in En.rc
|
2006-02-16 23:23:37 +00:00
|
|
|
*/
|
|
|
|
|
2013-01-24 23:00:42 +00:00
|
|
|
#include "precomp.h"
|
2006-02-16 23:23:37 +00:00
|
|
|
|
|
|
|
#ifdef INCLUDE_CMD_VERIFY
|
|
|
|
|
|
|
|
|
|
|
|
/* global verify flag */
|
|
|
|
static BOOL bVerify = FALSE;
|
|
|
|
|
|
|
|
|
2008-08-25 23:22:03 +00:00
|
|
|
INT cmd_verify (LPTSTR param)
|
2006-02-16 23:23:37 +00:00
|
|
|
{
|
2013-06-29 23:50:13 +00:00
|
|
|
if (!_tcsncmp (param, _T("/?"), 2))
|
|
|
|
{
|
|
|
|
ConOutResPaging(TRUE,STRING_VERIFY_HELP1);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!OnOffCommand(param, &bVerify, STRING_VERIFY_HELP2))
|
|
|
|
{
|
|
|
|
ConErrResPuts(STRING_VERIFY_HELP3);
|
|
|
|
return nErrorLevel = 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
return nErrorLevel = 0;
|
2006-02-16 23:23:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|