@echo off
:: 出处:http://bbs.wuyou.com/viewthread.php?tid=97345
:start
mode con cols=80 lines=31&color fc
cls
title 黑菜整合盘第7版__多功能系统优化设置控制台
echo.
ECHO 《多功能系统优化设置 控制台》 ——老婲整理
echo.
echo ╭───────────§──────────§────────────╮
ECHO │ §部分功能需重启后实现§ │
ECHO │ §──────────§ │
ECHO │ A. 更改默认安装路径至任意盘符的Program Files文件夹 │
ECHO │ B. 转移系统文件到任意盘符 (建议刚装机完使用,慎用!) │
ECHO │ C. 清除任何显卡生成的右键多余菜单 │
ECHO │ D. 右键增加“用记事本打开此文件” │
ECHO │ E. 右键增加“用命令行打开此文件夹” │
ECHO │ F. 右键增加“复制到、移动到文件夹” │
ECHO │ G. 删除IPC$默认共享 │
ECHO │ H. IE7或WMP11或Defender的安装破解 │
ECHO │ I. EXE可执行文件的关联修复 │
ECHO │ J. 从我的电脑里移除共享文档 │
ECHO │ K. 去除IE限制及主页恢复空白页 │
ECHO │ L. 修复IE重新注册组件 │
ECHO │ M. IE6开启10线程下载 │
ECHO │ N. 恢复快捷方式上的小箭头 │
ECHO │ O. 删除快捷方式上的小箭头 │
ECHO │ P. 令本机U盘成为只读 (需重插拔) │
ECHO │ Q. 恢复本机U盘为可写 (需重插拔) │
ECHO │ R. 关闭所有驱动器自动播放 │
ECHO │ S. 分区计算出整数G的方法 │
ECHO │ T. 退出 │
ECHO │ │
ECHO ╰───────────────────────────────────╯
echo.
SET Choice=
SET /P Choice= 请选择要进行的操作(A/B/C/D/E/F/G/H/I/J/K/L/M/N/O/P/Q/R/S),然后按回车:
ECHO.
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
IF /I '%Choice%'=='A' GOTO A
IF /I '%Choice%'=='B' GOTO B
IF /I '%Choice%'=='C' GOTO C
IF /I '%Choice%'=='D' GOTO D
IF /I '%Choice%'=='E' GOTO E
IF /I '%Choice%'=='F' GOTO F
IF /I '%Choice%'=='G' GOTO G
IF /I '%Choice%'=='H' GOTO H
IF /I '%Choice%'=='I' GOTO I
IF /I '%Choice%'=='J' GOTO J
IF /I '%Choice%'=='K' GOTO K
IF /I '%Choice%'=='L' GOTO L
IF /I '%Choice%'=='M' GOTO M
IF /I '%Choice%'=='N' GOTO N
IF /I '%Choice%'=='O' GOTO O
IF /I '%Choice%'=='P' GOTO P
IF /I '%Choice%'=='Q' GOTO Q
IF /I '%Choice%'=='R' GOTO R
IF /I '%Choice%'=='S' GOTO S
IF /I '%Choice%'=='T' GOTO T
GOTO Start
:A
CLS
echo.
SET select0=
SET /P select0= 请输入默认安装软件的盘符(默认为D盘),然后按回车:
IF '%select0%'=='' (set select0=D)
ECHO.
echo Windows Registry Editor Version 5.00 >%systemroot%\soft.reg
echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]>>%systemroot%\soft.reg
echo "ProgramFilesDir"="%select0%:\\Program Files">>%systemroot%\soft.reg
echo "CommonFilesDir"="%select0%:\\Program Files\\Common Files">>%systemroot%\soft.reg
regedit.exe /s %systemroot%\soft.reg
del /F /Q %systemroot%\soft.reg
cls
echo.
echo.
echo.
echo.
echo 更改软件默认安装路径完毕!
echo.
echo 按任意键返回主菜单
pause>nul
GOTO Start
:B
cls
echo.
echo 此操作为经常Ghost还原C盘者带来方便。
echo.
echo 将从C盘移出以下5个文件夹:
echo ● Desktop(桌面)
echo ● Favorites(收藏夹)
echo ● My Documents(我的文档)
echo ● Temporary Internet Files(Internet临时文件)
echo ● Temp(临时文件夹)。
echo.
SET queren=
SET /P queren= 注意!建议刚刚装完系统者使用!新手慎用!!!(确认转移请按Y,取消返回请按N。)
IF '%queren%'=='' GOTO B
IF NOT '%queren%'=='' SET queren=%queren:~0,1%
IF /I '%queren%'=='Y' GOTO next
IF /I '%queren%'=='N' GOTO start
:next
echo.
SET select=
SET /P select= 请输入将转移的目的盘符(默认为D盘),然后按回车:
IF '%select%'=='' (SET select=D)
ECHO.
echo REGEDIT4 >%systemroot%\shell.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]>>%systemroot%\shell.reg
echo "Cache"="%select%:\\Personal\\Temporary Internet Files">>%systemroot%\shell.reg
echo "Desktop"="%select%:\\Personal\\Desktop">>%systemroot%\shell.reg
echo "Favorites"="%select%:\\Personal\\Favorites">>%systemroot%\shell.reg
echo "Personal"="%select%:\\Personal\\My Documents">>%systemroot%\shell.reg
echo "My Music"="%select%:\\Personal\\My Documents\\My Music">>%systemroot%\shell.reg
echo "My Pictures"="%select%:\\Personal\\My Documents\\My Pictures">>%systemroot%\shell.reg
echo "Recent"="%select%:\\Personal\\Recent">>%systemroot%\shell.reg
echo [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]>>%systemroot%\shell.reg
echo "Cache"="%select%:\\Personal\\Temporary Internet Files">>%systemroot%\shell.reg
echo "Desktop"="%select%:\\Personal\\Desktop">>%systemroot%\shell.reg
echo "My Music"="%select%:\\Personal\\My Documents\\My Music">>%systemroot%\shell.reg
echo "My Pictures"="%select%:\\Personal\\My Documents\\My Pictures">>%systemroot%\shell.reg
echo "Favorites"="%select%:\\Personal\\Favorites">>%systemroot%\shell.reg
echo "Personal"="%select%:\\Personal\\My Documents">>%systemroot%\shell.reg
echo "Recent"="%select%:\\Personal\\Recent">>%systemroot%\shell.reg
echo [HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]>>%systemroot%\shell.reg
echo "Desktop"="%select%:\\Personal\\Desktop">>%systemroot%\shell.reg
echo "Cache"="%select%:\\Personal\\My Documents">>%systemroot%\shell.reg
echo "Download Directory"="%select%:\\Personal\\My Documents">>%systemroot%\shell.reg
echo [HKEY_CURRENT_USER\Environment]>>%systemroot%\shell.reg
echo "TEMP"="%select%:\\Personal\Temp">>%systemroot%\shell.reg
echo "TMP"="%select%:\\Personal\\Temp">>%systemroot%\shell.reg
echo [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]>>%systemroot%\shell.reg
echo "TEMP"="D:\\personal\\TEMP">>%systemroot%\shell.reg
echo "TMP"="D:\\personal\\TEMP">>%systemroot%\shell.reg
regedit.exe /s %systemroot%\shell.reg
::del /F /Q %systemroot%\shell.reg
md "%select%:\Personal\Temp\">nul 2>nul
md "%select%:\Personal\My Documents\">nul 2>nul
xcopy C:\Docume~1\%USERNAME%\Mydocu~1\*.* %select%:\Personal\Mydocu~1\ /e /y>nul 2>nul
md "%select%:\Personal\Desktop\">nul 2>nul
xcopy C:\Docume~1\%USERNAME%\Desktop\*.* %select%:\Personal\Desktop\ /e /y>nul 2>nul
md "%select%:\Personal\Desktop\">nul 2>nul
xcopy C:\Docume~1\%USERNAME%\桌面\*.* %select%:\Personal\Desktop\ /e /y>nul 2>nul
md "%select%:\Personal\Favorites\">nul 2>nul
xcopy C:\Docume~1\%USERNAME%\Favori~1\*.* %select%:\Personal\Favori~1\ /e /y>nul 2>nul
if exist "%select%:\Personal\My Documents\Desktop.ini" goto shell1
echo [DeleteOnCopy]>"%select%:\Personal\My Documents\Desktop.ini"
echo Owner=Administrator>>"%select%:\Personal\My Documents\Desktop.ini"
echo Personalized=5 >>"%select%:\Personal\My Documents\Desktop.ini"
echo PersonalizedName=My Documents>>"%select%:\Personal\My Documents\Desktop.ini"
attrib "%select%:\Personal\My Documents\Desktop.ini" +s +h>nul 2>nul
:shell1
if exist "%select%:\Personal\My Documents\My Music\Desktop.ini" goto shell2
echo [DeleteOnCopy] >"%select%:\Personal\My Documents\My Music\Desktop.ini"
echo Owner=Administrator>>"%select%:\Personal\My Documents\My Music\De
BAT批处理脚本-系统设置查询修改硬件相关-多功能系统优化设置.cmd.zip
版权申诉
19 浏览量
2023-12-26
16:22:00
上传
评论
收藏 6KB ZIP 举报
芝麻粒儿
- 粉丝: 6w+
- 资源: 2万+
最新资源
- keil2 + proteus + 8051.exe
- 1961ee27df03bd4595d28e24b00dde4e_744c805f7e4fb4d40fa3f695bfbab035_8(1).c
- mediapipe-0.9.0.1-cp37-cp37m-win-amd64.whl.zip
- windows注册表编辑工具
- mediapipe-0.9.0.1-cp37-cp37m-win-amd64.whl.zip
- 校园通行码预约管理系统20240522075502
- 车类型数据集6250张VOC+YOLO格式.zip
- The PyTorch implementation of STGCN.STGCN-main.zip
- 092300108.cpp
- 车类型数据集6000张VOC+YOLO格式.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈