Jump to content

Recommended Posts

Posted

Well Ive got a small problem and maybe nothing can be done about it but Ive made a command that installs all Xp hotfixes but when the command window appears there is no text and just a black screen here is my cmd perhaps I am using a wrong one? or there's something more suitable

Hotfixes.cmd

@echo off

setlocal

set PATHTOFIXES=C:\Updates

%PATHTOFIXES%\WindowsXP-KB893086-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB893066-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB891781-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB890923-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB890859-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB890175-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB888302-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB888113-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB887742-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB886185-x86-enu.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB885836-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB885835-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB885626-v2-x86-enu.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB885250-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB873339-x86-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsXP-KB873333-x86-ENU.exe /q /n /z

%PATHTOFIXES%\Windows-KB890830-V1.4-ENU.exe /q /n /z

%PATHTOFIXES%\WindowsInstaller-KB893803-v2-x86.exe /q /n /z

%PATHTOFIXES%\gdidettool.exe /q /n /z


Posted
...

%PATHTOFIXES%\WindowsXP-KB893086-x86-ENU.exe /q /n /z

...

just an ideea ! u can use short names there (8.3)

like

%PATHTOFIXES%\KB893086.exe /q /n /z
Posted

Well, dont see a problem??? installing hotfixes dont provide any output to output pipe and you are using @echo off....

Try to use delete @echo off to see, if it is working or not...

Posted (edited)

@TheeBeets

I don't know if I understand your problem correct. Are your hotfixes being installed? Or is it just that you don't see any interaction?

If the last on is the case you could use ECHO:

@echo off
setlocal
set PATHTOFIXES=C:\Updates

%PATHTOFIXES%\WindowsXP-KB893086-x86-ENU.exe /q /n /z
ECHO installing KB893086
ECHO please wait...
ECHO.

Anyway, I found an error in your cmd file:

%PATHTOFIXES%\Windows-KB890830-V1.4-ENU.exe /q /n /z

should be

%PATHTOFIXES%\Windows-KB890830-V1.4-ENU.exe /q

you can improve your hotfix.cmd in a easy way, here is how I do this:

1. rename al your hotfixes to 8.3 names (like oneless adviced)

2. rename KB890830 to something like Malicious_Software_remover.exe (we don't want it to have an KB?????? name

3. Change your hotfix.cmd to this

@echo off
set PATHTOFIXES=C:\Updates

FOR %%f IN (%PATHTOFIXES%\KB??????.exe) DO %%f /q /n /z
Start /wait %PATHTOFIXES%\Malicious_Software_remover.exe /q
Start /wait %PATHTOFIXES%\gdidettool.exe /q /n /z

this line...

FOR %%f IN (%PATHTOFIXES%\KB??????.exe) DO %%f /q /n /z

will install all KB?????? with the /q /n /z switch

EDIT:

Why don't you just hide the .cmd window with cmdow @ /HID ?

EDIT2:

I also have my doubts about this: gdidettool.exe /q /n /z Unless you repacked it, this switch doesn't work. Check-out this topic

Edited by erik_demon
Posted

If you copy a CMD file directly on this board, it won't show out the way it should, if I download it, I see this as your last line:

%PATHTOFIXES%\WindowsXP-KB886185-x86-enu.exe0

If you zip your CMD file, it will be displayed alright.

The way you do it now is correct

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...