无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站广告联系 微信:wuyouceo QQ:184822951
查看: 2207|回复: 3
打印 上一主题 下一主题

[求助] 请教各位大大,这段批处理代码,哪里出错了?

[复制链接]
跳转到指定楼层
1#
发表于 2015-5-14 14:40:17 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
这段代码手工输入可以运行,保存成批处理文件就没法运行。

希望各位老师,不吝赐教,小弟在这里表示感谢。

批处理代码如下

@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

2#
 楼主| 发表于 2015-5-14 16:08:53 | 只看该作者
本帖最后由 moran 于 2015-5-14 16:11 编辑

没人知道吗?各位论坛上的高手快进来啊。                                       
回复

使用道具 举报

3#
发表于 2015-5-14 18:54:25 | 只看该作者
用记事本另存为,编码选择ANSI 试试

点评

切实选择 ANSI 就可以了,以前没注意,谢谢你。  发表于 2015-5-14 21:46
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2024-5-23 10:01

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表