无忧启动论坛

标题: 求个启动时替换界面跟声音的批处理,谢谢 [打印本页]

作者: aghu    时间: 2010-3-10 12:22
标题: 求个启动时替换界面跟声音的批处理,谢谢
想折腾下启动界面跟声音,正好找到下面的东西:
http://hi.baidu.com/qywwkai/blog/item/d0e8b0c3e09e06100ff4776d.html

原AUTOEXEC.bat代码如下:
========================================
@echo off
c:

cd\windows\logo
copy/y sfc_cz01.del C:\WINDOWS\logo\sfc_cz.del
ren sfc_cz01.del sfc_czxx.del(原批处理的.del文件不知道是什么东西,如果没有影响删除掉也可以。)
ren sfc_cz02.del sfc_cz01.del
ren sfc_cz03.del sfc_cz02.del
ren sfc_cz04.del sfc_cz03.del
ren sfc_cz05.del sfc_cz04.del
ren sfc_cz06.del sfc_cz05.del
ren sfc_cz07.del sfc_cz06.del
ren sfc_cz08.del sfc_cz07.del
ren sfc_cz09.del sfc_cz08.del  
ren sfc_czxx.del sfc_cz09.del
copy/y logonui01.exe C:\WINDOWS\system32\logonui.exe
ren logonui01.exe logonuixx.exe
ren logonui02.exe logonui01.exe
ren logonui03.exe logonui02.exe
ren logonui04.exe logonui03.exe
ren logonui05.exe logonui04.exe
ren logonui06.exe logonui05.exe
ren logonui07.exe logonui06.exe
ren logonui08.exe logonui07.exe
ren logonui09.exe logonui08.exe
ren logonui10.exe logonui09.exe
ren logonui11.exe logonui10.exe
ren logonui12.exe logonui11.exe
ren logonui13.exe logonui12.exe
ren logonui14.exe logonui13.exe
ren logonui15.exe logonui14.exe
ren logonui16.exe logonui15.exe
ren logonui17.exe logonui16.exe
ren logonui18.exe logonui17.exe
ren logonui19.exe logonui18.exe
ren logonui20.exe logonui19.exe
ren logonui21.exe logonui20.exe
ren logonui22.exe logonui21.exe
ren logonui23.exe logonui22.exe
ren logonui24.exe logonui23.exe
ren logonui25.exe logonui24.exe
ren logonui26.exe logonui25.exe
ren logonui27.exe logonui26.exe
ren logonui28.exe logonui27.exe
ren logonui29.exe logonui28.exe
ren logonui30.exe logonui29.exe
ren logonui31.exe logonui30.exe
ren logonui32.exe logonui31.exe
ren logonui33.exe logonui32.exe
ren logonui34.exe logonui33.exe
ren logonui35.exe logonui34.exe
ren logonui36.exe logonui35.exe
ren logonui37.exe logonui36.exe
ren logonui38.exe logonui37.exe
ren logonui39.exe logonui38.exe
ren logonui40.exe logonui39.exe
ren logonui41.exe logonui40.exe
ren logonui42.exe logonui41.exe
ren logonui43.exe logonui42.exe
ren logonui44.exe logonui43.exe
ren logonui45.exe logonui44.exe
ren logonui46.exe logonui45.exe
ren logonui47.exe logonui46.exe
ren logonui48.exe logonui47.exe
ren logonui49.exe logonui48.exe
ren logonui50.exe logonui49.exe
ren logonui51.exe logonui50.exe
ren logonui52.exe logonui51.exe
ren logonui53.exe logonui52.exe
ren logonui54.exe logonui53.exe
ren logonuiXX.exe logonui54.exe
copy/y sound01.wav C:\Windows\Media\"Windows XP Startup.wav"
ren sound01.wav soundxx.wav
ren sound02.wav sound01.wav
ren sound03.wav sound02.wav
ren sound04.wav sound03.wav
ren sound05.wav sound04.wav
ren sound06.wav sound05.wav
ren sound07.wav sound06.wav
ren sound08.wav sound07.wav
ren sound09.wav sound08.wav
ren sound10.wav sound09.wav
ren sound11.wav sound10.wav
ren sound12.wav sound11.wav
ren sound13.wav sound12.wav
ren sound14.wav sound13.wav
ren sound15.wav sound14.wav
ren sound16.wav sound15.wav
ren sound17.wav sound16.wav
ren sound18.wav sound17.wav
ren sound19.wav sound18.wav
ren sound20.wav sound19.wav
ren soundxx.wav sound20.wav

========================================
作者跟我也差不多是菜鸟,把文件一个一个改名替换XP下的logonui.exe跟Windows XP Startup.wav,
我也就知道可以加上参数实现循环,但是不知道如何做,麻烦高手修改下。

小小要求如下:
1.批处理跟文件都不用放在C盘,执行后自动生成AUTOEXEC.bat放在c根下;
2.不界定logonui/sound的数量和目录,可以随意添加自动修改替换;
3.自动判定系统中英文,sound文件根据判定替换成"Windows XP Startup.wav"或者"Windows XP 启动.wav"
如果不能自动判定则添加条件语句让执行者选择中英文后替换成相应文件名。




欢迎光临 无忧启动论坛 (http://wuyou.net./) Powered by Discuz! X3.3