TheeBeets Posted June 6, 2005 Posted June 6, 2005 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 suitableHotfixes.cmd@echo offsetlocalset 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
oneless Posted June 6, 2005 Posted June 6, 2005 ...%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
Martin Zugec Posted June 6, 2005 Posted June 6, 2005 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...
erik_demon Posted June 6, 2005 Posted June 6, 2005 (edited) @TheeBeetsI 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 offsetlocalset PATHTOFIXES=C:\Updates%PATHTOFIXES%\WindowsXP-KB893086-x86-ENU.exe /q /n /zECHO installing KB893086ECHO please wait...ECHO.Anyway, I found an error in your cmd file:%PATHTOFIXES%\Windows-KB890830-V1.4-ENU.exe /q /n /zshould be%PATHTOFIXES%\Windows-KB890830-V1.4-ENU.exe /qyou 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?????? name3. Change your hotfix.cmd to this@echo offset PATHTOFIXES=C:\UpdatesFOR %%f IN (%PATHTOFIXES%\KB??????.exe) DO %%f /q /n /zStart /wait %PATHTOFIXES%\Malicious_Software_remover.exe /qStart /wait %PATHTOFIXES%\gdidettool.exe /q /n /zthis line...FOR %%f IN (%PATHTOFIXES%\KB??????.exe) DO %%f /q /n /zwill install all KB?????? with the /q /n /z switchEDIT: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 June 6, 2005 by erik_demon
TheeBeets Posted June 6, 2005 Author Posted June 6, 2005 Thx I got this fixed and hopefully this should be fine now attached to save spacehotfixes.cmd
erik_demon Posted June 6, 2005 Posted June 6, 2005 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.exe0If you zip your CMD file, it will be displayed alright.The way you do it now is correct
TheeBeets Posted June 6, 2005 Author Posted June 6, 2005 Cheers Erik for the help and everyone else for the advice!!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now