1 /* $Id: ShellCommandVersion.cpp,v 1.3 2001/01/13 23:55:37 narnaoud Exp $
3 * regexpl - Console Registry Explorer
5 * Copyright (C) 2000,2001 Nedko Arnaoudov <nedkohome@atia.com>
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; see the file COPYING. If not, write to
19 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 * Boston, MA 02111-1307, USA.
23 // ShellCommandVersion.cpp: implementation of the CShellCommandVersion class.
25 //////////////////////////////////////////////////////////////////////
28 #include "ShellCommandVersion.h"
29 #include "RegistryExplorer.h"
31 #define VER_CMD _T("VER")
32 #define VER_CMD_SHORT_DESC VER_CMD _T(" command displays information about this program.\n")
34 //////////////////////////////////////////////////////////////////////
35 // Construction/Destruction
36 //////////////////////////////////////////////////////////////////////
38 CShellCommandVersion::CShellCommandVersion()
42 CShellCommandVersion::~CShellCommandVersion()
46 BOOL
CShellCommandVersion::Match(const TCHAR
*pchCommand
)
48 return _tcsicmp(pchCommand
,VER_CMD
) == 0;
51 int CShellCommandVersion::Execute(CConsole
&rConsole
, CArgumentParser
& rArguments
)
53 rConsole
.Write(HELLO_MSG
);
54 rConsole
.Write(VER_MSG
);
58 const TCHAR
* CShellCommandVersion::GetHelpString()
60 return VER_CMD_SHORT_DESC
_T("Syntax: ") VER_CMD
_T("\n");
63 const TCHAR
* CShellCommandVersion::GetHelpShortDescriptionString()
65 return VER_CMD_SHORT_DESC
;