如果无就用pecmd.exe吧 if not exist %windir%\system32\xcopy.exe pecmd.exe FILE %~dp0Win ...
打算把这个脚本改成这样后重新做一个单文件版:
@echo off
cd /d %~dp0
xcopy .\WinSxS\*.* %Windir%\WinSxS\ /e/q/y
if not exist %windir%\system32\xcopy.exe pecmd.exe FILE %~dp0WinSxS=>%Windir%\WinSxS
regedit /s "WinSxS-2.reg"
Backupper.exe