1

I'm trying to script the installation of a number of patches using a batch file since powershell doesn't properly install the patches. The command I'm running is this:

dism /online /add-package /PackagePath:"C:\<path>\5cbb03ca-7a2a-4326-952f-80ad8052a886\windows6.1-kb2836942-x64-express.cab"

That works perfectly when run directly from the command line. But if I put it in a file called example.bat it fails with the following message:

'þd' is not recognized as an internal or external command
4

1 回答 1

5

我认为您的批处理文件保存为 Unicode。

在记事本中重新打开它并重新保存,确保编码字段设置为 ANSI。

于 2013-10-02T19:57:21.743 回答