Microsoft Windows XP [版本 5.1.2600]
(C) 版权所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator>wmic /namespace:\\root\default path StdR
egProv call GetExpandedStringValue "&H80000000","CLSID\\{450D8FBA-AD25-11D0-98A8
-0800361B1103}\\DefaultIcon"
执行 (StdRegProv)->GetExpandedStringValue()
方法执行成功。
输出参数:
instance of __PARAMETERS
{
ReturnValue = 2;
};
C:\Documents and Settings\Administrator>reg query "HKCR\CLSID\{450D8FBA-AD25-11D
0-98A8-0800361B1103}"
! REG.EXE VERSION 3.0
HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}
SortOrderIndex REG_DWORD 0x48
InfoTip REG_EXPAND_SZ @%SystemRoot%\system32\SHELL32.dll,-22914
LocalizedString REG_EXPAND_SZ @%SystemRoot%\system32\SHELL32.dll,-9227
HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\DefaultIcon
HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\InProcServer32
HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shell
HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\shellex
HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\ShellFolder
C:\Documents and Settings\Administrator>wmic /namespace:\\root\default path StdR
egProv call GetExpandedStringValue "&H80000000","CLSID\\{450D8FBA-AD25-11D0-98A8
-0800361B1103}\\DefaultIcon"
执行 (StdRegProv)->GetExpandedStringValue()
方法执行成功。
输出参数:
instance of __PARAMETERS
{
ReturnValue = 0;
sValue = "C:\\WINDOWS\\system32\\SHELL32.dll,-235";
};
C:\Documents and Settings\Administrator>for /f "tokens=2*" %a in ('wmic /namespa
ce:\\root\default path StdRegProv call GetExpandedStringValue "&H80000000"^,"CLS
ID\\{450D8FBA-AD25-11D0-98A8-0800361B1103}\\DefaultIcon" ^| findstr sValue') do
@for %x in (%b) do set ICO=%~fx
C:\Documents and Settings\Administrator>set ICO=C:\WINDOWS\system32\SHELL32.dll,
-235
C:\Documents and Settings\Administrator>
楼主试试下面这样能不能得到结果- reg query "HKCR\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}" >nul
- for /f "tokens=2*" %a in ('wmic /namespace:\\root\default path StdRegProv call GetExpandedStringValue "&H80000000"^,"CLSID\\{450D8FBA-AD25-11D0-98A8-0800361B1103}\\DefaultIcon" ^| findstr sValue') do @for %x in (%b) do set ICO=%~fx
复制代码
|