[破事水]机房个性化工具

忽然发现,这是这一周一来唯一一篇博文。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo off
echo 当前盘符:%~d0
::0. 显示文件后缀名
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "HideFileExt" /t REG_DWORD /d 00000000
::1. 壁纸
set regadd=reg add "HKEY_CURRENT_USER\Control Panel\Desktop
%regadd%" /v TileWallpaper /d "0" /f
::0为居中,1为平铺
%regadd%" /v Wallpaper /d "%~d0\Mine\壁纸\wallhaven-312106.jpg" /f
%regadd%" /v WallpaperStyle /d "10" /f
::WallpaperStyle6为适应,2为拉伸,10为填充
start RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
::更换完成
::2. Hosts
xcopy "%~d0\Mine\GFW\hosts" "%~dp0"
xcopy "%~dp0\hosts" "C:\Windows\System32\drivers\etc"
ipconfig /flushdns
::3. 常用文件拷贝
xcopy %~dp0\ZhangSiyang\* /E D:\ZhangSiyang\ /Y
xcopy %~dp0\stu\* /E D:\stu\ /Y
echo 继续?
pause
::4. START Chrome
"%~d0\Mine\GFW\ChromeUpdater+6.1.5\chrome.exe" https://www.google.com/ncr
echo 继续?
pause
::5. 安装NPP
"%~d0\Mine\软件\程序开发\npp*Installer.exe" /S
::配置文件
::6. 安装 RIME
"%~d0\Mine\软件\程序开发\weasel-0.9.30.0-installer.exe" /S
::配置文件