标题: 求助高手写一批处理文件,谢谢,详细请看帖。
[打印本页]
作者: Alex_wang
时间: 2004-7-6 00:00
标题: 求助高手写一批处理文件,谢谢,详细请看帖。
我公司产线上的测试电脑因配的是组装机,又不是正版OS,因测试MP3等必须用USB接口,一天要拨插好几百次,是用的WINDOW2K系统,却经常出现WINDOW2K不能正常启动,错误提示是winnt\config文件损坏,我每次都是进其它系统COPY原来备份好的CONFIG文件夹下的东东替换原来的CONFIG文件内容就OK,针对些问题,我装了DOS,及做好了WIN2K的GHOST,但每次GHOST都要几分钟,我想写个批处理文件,每次启动WIN2K时均能自动COPY指定目录下的CONFIG替换该系统下的config里的文件,怎么写?
或者就写个批处理文件,能执行COPY指定目录下的CONFIG文件替换现有系统目录下的如:c:\winnt\system32\config\所有文件,能实现这一功能也OK,每次如不能启动,就在DOS下执得此批处理文件就OK了,有高手请写一下,感激不尽!!.
作者: autoit
时间: 2004-7-7 00:00
①xcopy config\. c:\winnt\system32\config\ /y>nul
②CLs
@echo off
echo.
echo WARNING!
echo This will clone Win2K to the first partation in your first HD!
echo and it will delete all of data on the first partation in your first HD!
echo.
echo.
echo Press any key to continue or CTRL+C to abort . . .
echo.
pause > NUL
echo Loading...
ghost.exe -clone,mode=pload,src=win2k.gho:1,dst=1:1 -sure -rb
根据自己情况在修改吧。