标题: [分享]快速修改「开始」按钮文字
[打印本页]
作者: tireless
时间: 2008-9-10 03:08
标题: [分享]快速修改「开始」按钮文字
修改 .rc 部分的代码由 HAT 编写,还有 slore 提供的一些帮助,谢谢!
测试环境:Windows XP SP2
所用工具:
ResHacker.exe、
GoRC.exe
原理:
ResHacker.exe 在命令行下修改、替换 explorer.exe
执行过程:
1.ResHacker.exe 提取 explorer.exe 的 37 号 StringTable 为 .rc 文件
2.用户输入新的按钮文字(即修改 .rc 文件)
3.GoRC.exe 编译 .rc 为 .res 文件
4.结束 explorer.exe 进程、重命名 dllcache 下的 explorer.exe 为 .backup 后缀
5.ResHacker.exe 使用 .res 文件覆盖修改 explorer.exe
6.Start explorer
技巧:不输入文字,直接回车,可以移除「开始」按钮
截图
修改.bat::@ http://www.cn-dos.net/forum/viewthread.php?tid=42775
@echo off
setlocal enabledelayedexpansion
If not exist st37.rc (ResHacker.exe -extract %windir%\explorer.exe,st37.rc,stringtable,37,)
set count=0
set newname=
set /p newname=请输入:
type nul>"st37.bak"
for /f "tokens=1,2* delims=:" %%a in ('findstr /n .* "st37.rc"') do (
>>"st37.bak" echo.%%b
set /a count+=1
if !count! equ 4 goto :next
)
goto :eof
:next
>>"st37.bak" echo 578, "%newname%"
for /f "skip=5 tokens=1,2* delims=:" %%a in ('findstr /n .* "st37.rc"') do (
>>"st37.bak" echo.%%b
)
move /y "st37.bak" "st37.rc"
gorc.exe /r st37.rc
taskkill /im explorer.exe /f
set dllcache=%windir%\system32\dllcache
If not exist %dllcache%\explorer.backup ren %dllcache%\explorer.exe explorer.backup
If not exist %windir%\explorer_backup\explorer.exe (
md %windir%\explorer_backup
copy %windir%\explorer.exe %windir%\explorer_backup
)
ResHacker.exe -modify %windir%\explorer.exe,%windir%\explorer.exe,st37.res,stringtable,,
start explorer
恢复.bat@echo off
pause
taskkill /im explorer.exe /f
replace %windir%\explorer_backup\explorer.exe %windir%
ren %windir%\system32\dllcache\explorer.backup explorer.exe
rd /s /q %windir%\explorer_backup
start explorer
下载地址:
http://upload.cn-dos.net/img/780.rar
下载地址2:
http://www.brsbox.com/filebox/do ... e5a8ab85283b314d7d9
-------------------------------------------------------------------------------------------------------
以上修改方法是直接修改系统的 explorer.exe。还有另一种修改方法------ 加载另一个目录的 explorer.exe,修改注册表中的 shell 值指向这个 explorer.exe。
跳至 14 楼
[
Last edited by tireless on 2008-9-21 at 08:49 PM ]
作者: metoo
时间: 2008-9-10 06:58
ResHacker.exe 有命令行接口啊- -!才知道
作者: zts59
时间: 2008-9-10 09:33
不错,改资源也可以命令行,高
作者: HAT
时间: 2008-9-10 10:23
学习了
作者: terrytong
时间: 2008-9-10 11:53
运行了之后怎么金山词霸就出错了,怎么也打不开了。
作者: tireless
时间: 2008-9-10 12:14
Quote: |
Originally posted by terrytong at 2008-9-9 03:53 PM:
运行了之后怎么金山词霸就出错了,怎么也打不开了。 |
|
可能是由于重启了 explorer.exe 的缘故。
作者: slore
时间: 2008-9-10 12:32
还是建议改注册表修改shell……还原方便还不替换系统原文件。
作者: radem
时间: 2008-9-10 13:21
支持原创
modi
fy startbutton text.rar
作者: ggaking
时间: 2008-9-11 23:10
看到你最后一个恢复的批处理,好象就是将那个注册表删除了,却没有恢复为原来的值啊,这样重新启动要出错的呀!
作者: tireless
时间: 2008-9-11 23:27
Quote: |
Originally posted by ggaking at 2008-9-11 03:10 AM:
看到你最后一个恢复的批处理,好象就是将那个注册表删除了,却没有恢复为原来的值啊,这样重新启动要出错的呀! |
|
我也不记得默认有没有那个“shell”值。我试过了,不会出错。
作者: slore
时间: 2008-9-12 23:02
默认是explorer.exe不能删除的说
作者: coolrain
时间: 2008-9-14 11:19
好不错
作者: coolrain
时间: 2008-9-14 11:19
可以的,忘记说了
作者: tireless
时间: 2008-9-22 16:47
标题: 修改方案二:
修改.bat
@echo off
::@ http://www.cn-dos.net/forum/viewthread.php?tid=42775
If not exist st37.rc (ResHacker.exe -extract %windir%\explorer.exe,st37.rc,stringtable,37,)
setlocal enabledelayedexpansion
set count=0
set newname=
set /p newname=请输入:
type nul>"st37.bak"
for /f "tokens=1,2* delims=:" %%a in ('findstr /n .* "st37.rc"') do (
>>"st37.bak" echo.%%b
set /a count+=1
if !count! equ 4 goto :next
)
goto :eof
:next
>>"st37.bak" echo 578, "%newname%"
for /f "skip=5 tokens=1,2* delims=:" %%a in ('findstr /n .* "st37.rc"') do (
>>"st37.bak" echo.%%b
)
move /y "st37.bak" "st37.rc"
gorc.exe /r st37.rc
If not exist %windir%\CustomStartButton\ md %windir%\CustomStartButton\
taskkill /im explorer.exe /f
ResHacker.exe -modify %windir%\explorer.exe,%windir%\CustomStartButton\explorer.exe,st37.res,stringtable,,
reg add "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /d %windir%\CustomStartButton\explorer.exe /f
start %windir%\CustomStartButton\explorer.exe
恢复.bat
@echo off
pause
reg delete "HKCU\Software\Microsoft\Windows NT\CurrentVersion\Winlogon" /v Shell /f
taskkill /im explorer.exe /f
rd /s /q %windir%\CustomStartButton
start explorer
下载地址:
http://upload.cn-dos.net/img/781.rar
下载地址2:
http://www.brsbox.com/filebox/do ... d6129bbffe4888e1e8a
[
Last edited by tireless on 2008-9-21 at 08:48 PM ]
作者: moniuming
时间: 2008-9-24 17:30
好东西,顶起来!!!
作者: anqing
时间: 2009-1-5 08:29
提示系统文件被替换?
如何解决的?