|
这段代码手工输入可以运行,保存成批处理文件就没法运行。
希望各位老师,不吝赐教,小弟在这里表示感谢。
批处理代码如下
@echo off
echo.
title 清理wim临时文件
echo.
CD /D "C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Deployment Tools\amd64\DISM"
echo 按任意键开始清理
pause >nul
rename D:\install.wim Windows.wim
Dism /Export-Image /SourceImageFile:D:\Windows.wim /SourceIndex:1 /DestinationImageFile:D:\install.wim
Dism /Export-Image /SourceImageFile:D:\Windows.wim /SourceIndex:2 /DestinationImageFile:D:\install.wim
Dism /Export-Image /SourceImageFile:D:\Windows.wim /SourceIndex:3 /DestinationImageFile:D:\install.wim
Dism /Export-Image /SourceImageFile:D:\Windows.wim /SourceIndex:4 /DestinationImageFile:D:\install.wim
del D:\Windows.wim
echo 清理完毕,按任意键退出
pause >nul
|
|