How to create a batch file for this issue?

James Petrozzo

I need help making a batch file that will create a folder and then extract a cabinet file from a Windows installer file and then run a DISM command to install said extracted update. Below is a list of the command to use but for the life of me I cannot figure out the batch command order to get it to work.

mkdir update
expand -f: Windows6.1-KB3112343-x64.msu .\update
cd update
dism /online /add-package /packagepath:Windows6.1-KB3112343-x64.cab

I would be using the command knowing the file is at C:/users/owner/desktop/Windows6.1-KB3112343-x64

I'll also be making the update folder on the desktop as well. I just want to automate this process as much as possible because I have many Windows 7 computers that I update and to start I usually need to do the above commands and I want to make it more efficient if I can.

magicandre1981

This question is a typical XY problem. You tried to fix the slow MSU install and this can be done by running this batch file. It stops the Windows Update service before trying to install a MSU update. This speeds up the installation a lot.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to create new command to execute a batch file with Sublime Text?

분류에서Dev

Create Scheduled Task xml file with batch file

분류에서Dev

How can I call a batch file within another batch file?

분류에서Dev

batch file create txt file with multiple lines in specific folder

분류에서Dev

Batch file to loop through a directory and create a variable based on each file

분류에서Dev

Notepad++: Create shorcut to Batch file and open file afterwards

분류에서Dev

How to make another batch file with variables using batch?

분류에서Dev

How to run batch file command with elevated permissions?

분류에서Dev

How to sign a Windows batch (.bat) file?

분류에서Dev

How to go to label in called batch file

분류에서Dev

How to use "<<" in batch file or command prompt?

분류에서Dev

How to continue a batch file pause in PowerShell

분류에서Dev

How to check if a batch file has ANY parameters?

분류에서Dev

Input and spacing issue in batch

분류에서Dev

how check all of my file copy correctly by batch file?

분류에서Dev

How to run CodedUI tests outside application with Batch files and create a report

분류에서Dev

Batch file to create .7z archive for each file (in folder/subfolder) to a new destination (folder/subfolder structure)

분류에서Dev

How to create .jl file in IJulia

분류에서Dev

How to create package file for packages

분류에서Dev

How do you create a script to batch add repositories and then batch install packages?

분류에서Dev

In a Windows batch file, how to FOR /F with a command having multiple quoted strings

분류에서Dev

How to pass paramaters like unix into windows batch file

분류에서Dev

How can i resolve the path laocation in batch file

분류에서Dev

How can I run a batch file with a loop as a scheduled task?

분류에서Dev

How to convert a windows batch file into a signle line "cmd /c" command?

분류에서Dev

How to display warning message while closing a batch file?

분류에서Dev

How to provide an input to a batch file ran using Inno Setup installer?

분류에서Dev

How to download a file without browser and open/save dialog batch maybe?

분류에서Dev

How to make a batch file to use Flex command line debugger?

Related 관련 기사

  1. 1

    How to create new command to execute a batch file with Sublime Text?

  2. 2

    Create Scheduled Task xml file with batch file

  3. 3

    How can I call a batch file within another batch file?

  4. 4

    batch file create txt file with multiple lines in specific folder

  5. 5

    Batch file to loop through a directory and create a variable based on each file

  6. 6

    Notepad++: Create shorcut to Batch file and open file afterwards

  7. 7

    How to make another batch file with variables using batch?

  8. 8

    How to run batch file command with elevated permissions?

  9. 9

    How to sign a Windows batch (.bat) file?

  10. 10

    How to go to label in called batch file

  11. 11

    How to use "<<" in batch file or command prompt?

  12. 12

    How to continue a batch file pause in PowerShell

  13. 13

    How to check if a batch file has ANY parameters?

  14. 14

    Input and spacing issue in batch

  15. 15

    how check all of my file copy correctly by batch file?

  16. 16

    How to run CodedUI tests outside application with Batch files and create a report

  17. 17

    Batch file to create .7z archive for each file (in folder/subfolder) to a new destination (folder/subfolder structure)

  18. 18

    How to create .jl file in IJulia

  19. 19

    How to create package file for packages

  20. 20

    How do you create a script to batch add repositories and then batch install packages?

  21. 21

    In a Windows batch file, how to FOR /F with a command having multiple quoted strings

  22. 22

    How to pass paramaters like unix into windows batch file

  23. 23

    How can i resolve the path laocation in batch file

  24. 24

    How can I run a batch file with a loop as a scheduled task?

  25. 25

    How to convert a windows batch file into a signle line "cmd /c" command?

  26. 26

    How to display warning message while closing a batch file?

  27. 27

    How to provide an input to a batch file ran using Inno Setup installer?

  28. 28

    How to download a file without browser and open/save dialog batch maybe?

  29. 29

    How to make a batch file to use Flex command line debugger?

뜨겁다태그

보관