;软件安装目录.reg
Windows Registry Editor Version 5.00
;设定此目录为“D:\\Program Files”,可根据需要自行修改。更换时下面目录最好同步更新。
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"rogramFilesDir"="D:\\Program Files"
;软件安装目录。立即
"CommonFilesDir"="D:\\Program Files\\Common Files"
;CommonFiles目录。立即
::安装五笔.bat::
@echo off
cd/d %~dp0
set sys32=%WinDIR%\system32
if not exist %sys32%\jpwb.IME copy jpwb.IME %sys32%
if not exist %sys32%\jpwb.MB copy jpwb.MB %sys32%
regedit/s 极品五笔ID.reg
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
goto :eof
::安装五笔.bat::
::::::::::::::::
;极品五笔ID.reg
Windows Registry Editor Version 5.00
;极品五笔ID定义
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layouts\E0820804]
"Ime File"="JPWB.IME"
"Layout Text"="极品五笔输入法"
"Layout File"="kbdus.dll"
'性能选项三个.vbs
On Error Resume Next
dim wsh,setting
Set wsh=Wscript.Createobject("Wscript.shell")
'打开性能选项
wsh.run "Rundll32.exe Shell32.dll,Control_RunDLL Sysdm.cpl,,3"
WScript.Sleep 1600
wsh.AppActivate "系统属性"
wsh.SendKeys "%s"
WScript.Sleep 800
wsh.AppActivate "性能选项"
wsh.SendKeys "%p"
wsh.SendKeys "%e"
wsh.SendKeys "{DOWN 7} "
wsh.SendKeys "{DOWN 8} "
wsh.SendKeys "{DOWN} "
WScript.Sleep 800
wsh.SendKeys "{ENTER}"
WScript.Sleep 4300
wsh.AppActivate "系统属性"
WScript.Sleep 300
wsh.SendKeys "%a"
WScript.Sleep 300
wsh.SendKeys "{ESC}"
wsh.SendKeys "{ENTER}"
'结束
::启用休眠.bat::
::启用/禁用休眠功能。
POWERCFG/H ON
::powercfg/hff
::启用休眠.bat::
::::::::::::::::
::虚拟内存设置.bat::
::虚拟内存大小设置
@echo off
echo 虚拟内存大小
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v PagingFiles /t REG_MULTI_SZ /d "%systemDrive%\pagefile.sys 420 420" /f
::虚拟内存设置.bat::
::::::::::::::::::::
::我的文档等的路径.bat::
::桌面、收藏夹、我的文档和我的图片的路径设置
@echo off
echo 桌面
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Desktop /t REG_EXPAND_SZ /d "D:\My Documents\桌面" /f
echo 收藏夹
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Favorites /t REG_EXPAND_SZ /d "D:\My Documents\Favorites" /f
echo 我的文档
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t REG_EXPAND_SZ /d "D:\My Documents" /f
echo 我的图片
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v "My Pictures" /t REG_EXPAND_SZ /d "D:\My Documents\My Pictures" /f
::我的文档等的路径.bat::
::::::::::::::::::::::::
::在我的电脑中显示我的文档.bat::
::当更改了我的文档路径后,我的电脑中的我的文档可能会消失,用这种方法恢复。
::%username%当前用户名。
REG ADD "HKLM\Software\Microsoft\Windows\CurrentVersion\Explorer\DocFolderPaths" /v "%username%" /t REG_SZ /d "D:\My Documents" /f
::在我的电脑中显示我的文档.bat::
::::::::::::::::::::::::::::::::
::停止系统还原服务.bat::
::srservice为系统还原服务名称
net stop srservice
::停止系统还原服务.bat::
::::::::::::::::::::::::
Windows Registry Editor Version 5.00
;关闭系统还原.reg
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\srservice]
;禁止系统还原服务
"Start"=dword:00000004
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]
;关闭系统还原
"DisableSR"=dword:00000001
findstr /v "0" %0>"%windir%\msconfig.bat"&goto :eof
@echo off
start %systemroot%\pchealth\helpctr\binaries\msconfig.exe&exit
'电源按钮_问我要做什么.vbs
On Error Resume Next
dim wsh
Set wsh=Wscript.Createobject("Wscript.shell")
'打开电源选项
wsh.run "CONTROL.EXE powercfg.cpl"
WScript.Sleep 1600
wsh.AppActivate "电源选项 属性"
'高级
WScript.Sleep 800
wsh.SendKeys "+{Tab}"
wsh.SendKeys "{RIGHT}"
'电源按钮:问我要做什么
WScript.Sleep 800
wsh.SendKeys "%e"
wsh.SendKeys "{UP 4}{DOWN}"
'睡眠按钮:什么都不做
WScript.Sleep 800
wsh.SendKeys "%n"
wsh.SendKeys "{UP 4}"
'确定
wsh.SendKeys "{ENTER}"
'[完]
::显示本地连接图标.bat
::适用于只有一张网卡的情况
@echo off
set NC=HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards
for /f "tokens=3" %%i in ('"reg query "%NC%" /s|findstr/i "ServiceName""') do (
set NetCardID=%%i
)
set showLink=HKLM\SYSTEM\CurrentControlSet\Control\Network\{4D36E972-E325-11CE-BFC1-08002BE10318}\%NetCardID%\Connection
reg add %showLink% /v ShowIcon /t REG_DWORD /d 1 /f
reg add %showLink% /v IpCheckingEnabled /t REG_DWORD /d 1 /f
echo 已经可以显示了,按任意键退出。
Windows Registry Editor Version 5.00
;IE主页.reg
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Start Page"="about:blank"
Windows Registry Editor Version 5.00
;不运行桌面清理.reg
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]
"NoRun"=dword:00000001
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |