mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 13:11:43 +00:00
Added Eric Kohl's port of freedos command
svn path=/trunk/; revision=324
This commit is contained in:
parent
af3d943b02
commit
9f7f2c0f72
110 changed files with 23334 additions and 252 deletions
59
rosapps/cmd/verify.c
Normal file
59
rosapps/cmd/verify.c
Normal file
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
* VERIFY.C - verify internal command.
|
||||
*
|
||||
*
|
||||
* History:
|
||||
*
|
||||
* 31 Jul 1998 (John P Price)
|
||||
* started.
|
||||
*
|
||||
* 18-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
||||
* VERIFY is just a dummy under Win32; it only exists
|
||||
* for compatibility!!!
|
||||
*
|
||||
* 20-Jan-1999 (Eric Kohl <ekohl@abo.rhein-zeitung.de>)
|
||||
* Unicode and redirection ready!
|
||||
*/
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#include "config.h"
|
||||
|
||||
#ifdef INCLUDE_CMD_VERIFY
|
||||
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "cmd.h"
|
||||
|
||||
|
||||
/* global verify flag */
|
||||
static BOOL bVerify = FALSE;
|
||||
|
||||
|
||||
INT cmd_verify (LPTSTR cmd, LPTSTR param)
|
||||
{
|
||||
if (!_tcsncmp (param, _T("/?"), 2))
|
||||
{
|
||||
ConOutPuts (_T("This command is just a dummy!!\n"
|
||||
"Sets whether to verify that your files are written correctly to a\n"
|
||||
"disk.\n\n"
|
||||
"VERIFY [ON | OFF]\n\n"
|
||||
"Type VERIFY without a parameter to display the current VERIFY setting."));
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (!*param)
|
||||
ConOutPrintf (_T("VERIFY is %s.\n"), bVerify ? D_ON : D_OFF);
|
||||
else if (_tcsicmp (param, D_OFF) == 0)
|
||||
bVerify = FALSE;
|
||||
else if (_tcsicmp (param, D_ON) == 0)
|
||||
bVerify = TRUE;
|
||||
else
|
||||
ConOutPuts (_T("Must specify ON or OFF."));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue