批处理文件以运行多个exe补丁。 [英] Batch file to run multiple exe patches.

查看:154
本文介绍了批处理文件以运行多个exe补丁。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要一些可以运行2003补丁的批处理文件(带有exe扩展名)。我有一个2008年的批处理文件(扩展名为msu)。我们只需要放置批处理文件并双击它...它会做什么将...安装文件夹中可用
的所有补丁。

I need some batch file which can run 2003 patches (with exe extensions). I am having one batch file for 2008 (with msu extension). we just need to put the batch file and double click on it .. what it'll do it will .. install all the patches which is available in the folder.

所以我只需要和2003年一样。它可以安装有exe扩展的补丁。

So i just need same as it is for 2003. which can install the patches who's having exe extension.

@echo off& color e&& cls&&模式60,4& title,  [MULTI Patch UPDATE INSTALLER]



echo。安装Windows更新..请等待!



::更新

::安装期间从msu文件夹中扫描和回显文件..

for / f" delims =" %% a in('dir / b * .msu')do(

echo ==安装更新==" %% a"

echo。

:: DELAY

ping -n 4 localhost 1> nul

echo。

:: INSTALL

开始/等待wusa %% a / quiet / norestart



cls

echo ** DONE **&& ping -n 3 127.0.0.1> nul&&退出

@echo off&color e && cls && Mode 60,4&title,  [ MULTI Patch UPDATE INSTALLER ]

echo. Installing Windows Updates..Please Wait!

:: UPDATES
:: Scan and Echo files from the msu folder during install..
for /f "delims=" %%a in ('dir/b *.msu') do (
echo == Installing Updates == "%%a"
echo.
:: DELAY
ping -n 4 localhost 1>nul
echo.
:: INSTALL
start /wait wusa %%a /quiet /norestart
)
cls
echo ** DONE ** && ping -n 3 127.0.0.1>nul && exit

推荐答案


大家好,

Hi guys,

我需要一些批次可以运行2003补丁的文件(带有exe扩展名)。我有一个2008年的批处理文件(扩展名为msu)。  所以我只需要和2003年一样。可以安装补丁谁是
有exe扩展名。

I need some batch file which can run 2003 patches (with exe extensions). I am having one batch file for 2008 (with msu extension). So i just need same as it is for 2003. which can install the patches who's having exe extension.

当你说2003补丁或2008补丁时,你的意思是Windows XP补丁或Windows 8?

When you say 2003 patches or 2008 patches, do you mean patches for Windows XP or for Windows 8?

如果您的批处理文件适用于Windows 8,那么它也适用于Windows XP。你试过吗?

If your batch file works for Windows 8 then it should work for Windows XP too. Did you try?


这篇关于批处理文件以运行多个exe补丁。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆