求敎制作一批处理

来源:百度知道 编辑:UC知道 时间:2024/06/09 12:13:16
A:[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]主键,
1:在右边将“CDInstall”键值数据修改为“0”,
2:将该主键下“ServicePackSourcePath”和“SourcePath”两个键值的数值都修改为“E:\ghost\winxpsp3”保存刷新
B:第二步执行开始,运行sfc /scannow

@ECHO OFF
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v CDInstall /t reg_dword /d 0 /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v ServicePackSourcePath /t reg_sz /d E:\ghost\winxpsp3 /f
reg add HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup /v SourcePath /t reg_sz /d E:\ghost\winxpsp3 /f
RunDll32.exe USER32.DLL,UpdatePerUserSystemParameters
sfc /scannow