30#define DK_CMD _T("DK")
31#define DK_CMD_SHORT_DESC DK_CMD _T(" command is used to delete key(s).\n")
74 rConsole.
Write(
_T(
"Wrong parameter : \""));
75 rConsole.
Write(pchArg);
86 if ((!blnHelp) && (!pchKey))
88 rConsole.
Write(
_T(
"Key name not specified !\n\n"));
89 blnExitAfterHelp =
TRUE;
109 while(*
pch ==
_T(
'\\'))
112 while((
pch > pchKey)&&(*
pch !=
_T(
'\\')))
117 const TCHAR *pszPath;
119 if (*
pch ==
_T(
'\\'))
142 if (
s && (pszPattern[0] ==
_T(
'\"'))&&(pszPattern[
s-1] ==
_T(
'\"')))
151 rConsole.
Write(
_T(
"Cannot delete key(s).\n"));
165 _T(
"Syntax: ")
DK_CMD _T(
" [/s] [/?] [PATH]KEY_NAME\n\n")
166 _T(
" PATH - optional path to key which subkey(s) will be deleted. Default is current key.")
167 _T(
" KEY_NAME - name of key to be deleted. Wildcards can be used.")
168 _T(
" /? - This help.\n\n")
169 _T(
" /s - Delete key and all subkeys.\n");
void InvalidateCompletion()
#define COMMAND_NA_ON_ROOT
#define DK_CMD_SHORT_DESC
TCHAR * GetNextArgument()
BOOL Write(const TCHAR *p, DWORD dwChars=0)
const TCHAR * GetLastErrorDescription()
BOOL DeleteSubkeys(const TCHAR *pszKeyPattern, const TCHAR *pszPath, BOOL blnRecursive=FALSE)
CShellCommandDeleteKey(CRegistryTree &rTree)
virtual BOOL Match(const TCHAR *pchCommand)
virtual ~CShellCommandDeleteKey()
virtual int Execute(CConsole &rConsole, CArgumentParser &rArguments)
virtual const TCHAR * GetHelpString()
virtual const TCHAR * GetHelpShortDescriptionString()