註冊表項,我寫了一個腳本來自動生成過程中一點點。RegDelete不能刪除基於在<a href="http://www.tweakguides.com/VA_4.html" rel="nofollow noreferrer">http://www.tweakguides.com/VA_4.html</a>以防止從Windows Vista中的Windows資源管理器「智能化」重新排列列格式的建議在WSH 5.7
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
'Remove the "filthy" reg keys first.
regKey = "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\BagMRU\"
WScript.Echo "Deleting " & regKey & VbCrLf
WshShell.RegDelete regKey
regKey = "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\Shell\Bags\"
WScript.Echo "Deleting " & regKey & VbCrLf
WshShell.RegDelete regKey
'Then recreate a clean Bags key, with sub-keys and FolderType value.
regKey = "HKCU\Software\Classes\Local Settings\Software\Microsoft\ Windows\Shell\Bags\AllFolders\Shell\FolderType"
WScript.Echo "Creating " & regKey & " as 'NotSpecified' REG_SZ " & VbCrLf
WshShell.RegWrite regKey, "NotSpecified", "REG_SZ"
WScript.Echo "Now define the columns of your preference in Windows Explorer," & VbCrLf
WScript.Echo "and click the Apply to Folders button in Folder Options." & VbCrLf
但它拒絕刪除註冊表項
E:\archive\settings\Windows Vista Explorer columns.vbs(9, 1) WshShell.RegDelete:
Unable to remove registry key "HKCU\Software\Classes\Local Settings\Software\Mi
crosoft\Windows\Shell\BagMRU\".
的建議是把尾部的「\」,表示是關鍵,我做到了。有任何想法嗎?
這可能與權限去做,你以管理員身份運行,並通過用戶編輯這些鍵/組? – 2008-11-20 02:51:21
是的,我是管理員,是的,我禁用UAC所有;-) – icelava 2008-11-20 05:09:21