Discussion Locked

batch file 2 install multiple hotfixes

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi All

I have written a batch file ( using win 2000) for installing multiple hotfixes (where Qchain is included)on a Win Nt server, when I try to run the batch file it give error message "C:\winnt\system32 not recognised as internal and external command, operable program or batch file. What could be wrong?

Thanks in advance to any responce.

8 replies

by gigelul

Hi,
Maybe the batch can't find in specified path the "cmd.exe" file. Check again the path or add additional commands like: c:, cd "folder". Also maybe your OS is installed in a different directory than "winnt" or other exe file which you "include" in your batch are in a different path.

by ann777

You need a "command" before the path or you need to include the program you are running in that directory...

c:\winnt\system32\calc.exe

by joseph moore

To quote from Technet article Q314902:

"How to Install Multiple Hotfixes with a Simple Batch File
You can install multiple hotfixes and run QChain.exe by using a simple batch file. If you want to use this method, make sure that all of the hotfixes and the QChain.exe tool are located in the same folder on the local hard disk. Create a batch file that contains the following lines:

@echo off
setlocal
set PATHTOFIXES= some_path
%PATHTOFIXES%\Q123456_w2k_sp2_x86.exe -z -m
%PATHTOFIXES%\Q123321_w2k_sp2_x86.exe -z -m
%PATHTOFIXES%\Q123789_w2k_sp2_x86.exe -z -m
%PATHTOFIXES%\qchain.exe
EXIT

Make sure to replace some_path with the correct path for the hotfixes. For example, if you stored the hotfixes in a folder named Hotfixes ondrive C, replace " some_path" with "c:\hotfixes". "

The URL to the article is here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;Q314902
(please remove any spaces)

hope this helps

This discussion is closed to new replies.