Windows 8 在资源管理器中更改默认视图。Windows 8/Registry/VBS
Base:我有一小段注册表更改vb脚本Windows 8 在资源管理器中更改默认视图。Windows 8/Registry/VBS,windows-8,vbscript,registry,explorer,Windows 8,Vbscript,Registry,Explorer,Base:我有一小段注册表更改vb脚本 key = "Software\Microsoft\Windows\CurrentVersion\Explorer\Streams" result = wmireg.CreateKey(HKCU, key) binaer = Array(8,0,0,0,6,0,0,0,0,0,0,0,229,37,241,101,225,123,16,72,186,157,210,113,200,67,44,227,4,0,0,0,3,0,0,0,67,0,0,0)
key = "Software\Microsoft\Windows\CurrentVersion\Explorer\Streams"
result = wmireg.CreateKey(HKCU, key)
binaer = Array(8,0,0,0,6,0,0,0,0,0,0,0,229,37,241,101,225,123,16,72,186,157,210,113,200,67,44,227,4,0,0,0,3,0,0,0,67,0,0,0)
result = wmireg.SetBinaryValue(HKCU, key,"Settings",binaer)
key ="Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults"
result = wmireg.CreateKey(HKCU, key)
binaer = Array(28,0,0,0,5,0,0,0,0,0,3,0,0,0,144,0,0,0,0,0,1,0,0,0,255,255,255,255,240,240,240,240,20,0,3,0,144,0,0,0,0,0,0,0,48,0,0,0,253,223,223,253,15,0,4,0,32,0,16,0,40,0,60,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,42,1,96,0,120,0,120,0,0,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
result = wmireg.SetBinaryValue(HKCU,key,"{F3364BA0-65B9-11CE-A9BA-00AA004AE837}", binaer)
问题:在此代码段中,浏览器的默认视图将设置为平铺视图。在Windows XP中一切正常。现在,我将把它翻译成Windows 8,但是没有成功
如果我使用UI手动执行此步骤,我将使用来计算注册表项值
在Windows 8中,键:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Settings
08 00 00 00 06 00 00 00 01 00 00 00 E5 25 F1 65
将设置为:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Settings
08 00 00 00 06 00 00 00 01 00 00 00 E5 25 F1 65
和键:
HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}
将设置为
1C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
在Windows XP中,我可以通过脚本、重新启动(或注销登录)来更改此值,默认视图是tiles视图。但在Windows8中,什么都不会发生
我用Windows 8值更改了vbs,现在如果脚本完成,注册表中的值将成功修改。但是,如果我打开浏览器,则不会应用其他视图。在与我进行了一些研究后,我发现您必须先删除这些键:
Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags
Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Settings
Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}
Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags
Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU
Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Settings
Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults\{5C4F28B5-F869-4E84-8E60-F11DB97C5CC7}