|
本帖最后由 永远的大象 于 2020-1-22 23:34 编辑
以下批处理内容
23:34 发现一处写错,已更正
- @echo off
- title Classic Shell StartMenu 配置
- ::获取管理员权限
- fltmc >nul 2>&1 || (
- echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\GetAdmin.vbs"
- echo UAC.ShellExecute "%~f0", "", "", "runas", 1 >> "%temp%\GetAdmin.vbs"
- "%temp%\GetAdmin.vbs"
- del /f /q "%temp%\GetAdmin.vbs" >nul 2>&1
- exit
- )
- pushd "%~dp0"
- ::=================================================
- :: x86/x64 检测
- if not "%PROCESSOR_ARCHITECTURE%"=="AMD64" GOTO Error
- :: 系统版本检测
- If Not Exist "%Public%" GOTO Error
- ::=================================================
- :: 复制文件到 Program Files\Classic Shell
- md "%ProgramFiles%\Classic Shell"
- xcopy /e /c /i /q /r "%cd%" "%ProgramFiles%\Classic Shell"
- ::=================================================
- :: 导入注册表
- :: [HKEY_CURRENT_USER\Software\IvoSoft\ClassicStartMenu]
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu" /v "CSettingsDlg" /t REG_BINARY /d "5C000000000000000000000000000000360D00000100000000000000" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu" /v "ItemRanks" /t REG_BINARY /d "48534C43010000000000000020F1440D0100000036CED5017F4FEF2F01000000FDCDD501475167F001000000DACDD501FB8DA0FA01000000FCCDD501C41A2BFB0100000037CED501" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu" /v "LastProgramsTime" /t REG_QWORD /d "132274736749531250" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu" /v "OldItems" /t REG_BINARY /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu" /v "ShowedStyle2" /t REG_DWORD /d "1" /f
- :: [HKEY_CURRENT_USER\Software\IvoSoft\ClassicStartMenu\Settings]
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "Version" /t REG_DWORD /d "67305473" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "MenuStyle" /t REG_SZ /d "Classic1" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "SkinC1" /t REG_SZ /d "Classic Skin" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "SkinVariationC1" /t REG_SZ /f
- REG ADD "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /V SkinOptionsC1 /T REG_MULTI_SZ /D "CAPTION=1\0USER_IMAGE=0\0USER_NAME=0\0CENTER_NAME=0\0SMALL_ICONS=0\0THICK_BORDER=0\0SOLID_SELECTION=0" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "RecentPrograms" /t REG_SZ /d "None" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "UserPictures" /t REG_SZ /d "Hide" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "ConfirmLogOff" /t REG_DWORD /d "1" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "Help" /t REG_DWORD /d "0" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "CheckWinUpdates" /t REG_DWORD /d "0" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "EnableAccessibility" /t REG_DWORD /d "0" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "SkinA" /t REG_SZ /d "Classic Skin" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "SkinVariationA" /t REG_SZ /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "SkinOptionsA" /t REG_MULTI_SZ /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "EnableStartButton" /t REG_DWORD /d "0" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "StartButtonType" /t REG_SZ /d "CustomButton" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "HighlightNew" /t REG_DWORD /d "0" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "SearchInternet" /t REG_DWORD /d "0" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "EnableExit" /t REG_DWORD /d "1" /f
- reg add "HKCU\Software\IvoSoft\ClassicStartMenu\Settings" /v "EnableExplorer" /t REG_DWORD /d "0" /f
- :: 添加自启动
- reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v ClassicStartMenu /t reg_sz /d "%programfiles%\Classic Shell\ClassicStartMenu.exe" /f
- ::=================================================
- :: 注册控件
- regsvr32 /s "%ProgramFiles%\Classic Shell\ClassicStartMenuDLL.dll"
- :: 启动程序
- start "%ProgramFiles%\Classic Shell\ClassicStartMenu.exe"
- echo. 绿化完成。
- echo.
- echo.请按任意键退出。。。
- pause>nul & exit
- ::=================================================
- ::错误
- :Error
- title 不支持的系统!
- echo.
- echo. 本软件仅支持运行于 Windows 7 及以上操作系统,仅支持 x64 系统运行。
- echo.
- echo.
- echo. 请按任意键退出。。。
- pause>nul & exit
复制代码
|
|