批处理脚本:
[text]
@echo off
for %%i in (7.1,9.0,10.0,12.0) do (
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\FileMRUList /f
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\ProjectMRUList /f
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\Find /va /f
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\ComponentPickerPages /f
@REG Delete HKCU\Software\Microsoft\VisualStudio\%%i\Object_Browser /f
@REG Delete “HKCU\Software\Microsoft\VisualStudio\%%i\Class View” /va /f
)
for %%i in (2005,2008,2010,2013) do (
RD /s /q “%USERPROFILE%\Documents\Visual Studio %%i\Backup Files”
RD /s /q “%USERPROFILE%\Documents\Visual Studio %%i\Settings”
RD /s /q “%USERPROFILE%\Documents\Visual Studio %%i\Templates”
)
pause
[/text]
Tags: C/C++