1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Trying To Write A Batch File For XP Updates Offline

Discussion in 'Windows XP' started by hiker, 2014/01/09.

  1. 2014/01/09
    hiker

    hiker Inactive Thread Starter

    Joined:
    2010/05/29
    Messages:
    6
    Likes Received:
    0
    I am trying to write a bat file for applying Windows XP updates offline. I have followed the instructions from this webpage http://www.instructables.com/id/How-to-create-an-autopatcher-for-windows-xp-using-/
    Here is my test bat file:

    @echo off
    echo Installing Windows XP Updates
    cmd >updatelog.txt
    WindowsXP-KB2345886-x86-ENU.exe /passive /norestart /n
    WindowsXP-KB970430-x86-ENU.exe /passive /norestart /n
    shutdown -r -t 30 -f

    I have downloaded the updates and created the file according to the instructions provided in the above webpage. However, when I try to run it, it opens a command prompt window that says "Installing Windows XP Updates" with a blinking cursor and does not go any further. Does anyone know what I'm doing wrong? I plan on using this method to update Windows XP machines after Microsoft ends support for it.
     
  2. 2014/01/09
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    Line 3

    cmd >updatelog.txt

    What do you think this does?
     

  3. to hide this advert.

  4. 2014/01/09
    hiker

    hiker Inactive Thread Starter

    Joined:
    2010/05/29
    Messages:
    6
    Likes Received:
    0
    Thanks for your reply. The "cmd >updatelog.txt" line appears to create and write an updatelog file back into the containing file for the updates and bat file.
     
  5. 2014/01/09
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    Are you sure? ;)

    EDIT: OK, I've finally looked at the webpage you linked to in your first post, perhaps you should read it again carefully.
     
    Last edited: 2014/01/09
  6. 2014/01/09
    hiker

    hiker Inactive Thread Starter

    Joined:
    2010/05/29
    Messages:
    6
    Likes Received:
    0
    Yes. It creates a file named "updatelog Text Document ".
     
  7. 2014/01/09
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
  8. 2014/01/09
    hiker

    hiker Inactive Thread Starter

    Joined:
    2010/05/29
    Messages:
    6
    Likes Received:
    0
    Thanks for the reply wildfire. I looked at the webpage that you posted, but I'm afraid that I only understand a little bit of it. Could you please be more specific? Thank you.
     
  9. 2014/01/09
    wildfire

    wildfire Getting Old

    Joined:
    2008/04/21
    Messages:
    4,649
    Likes Received:
    124
    The 3rd line in your batch opens a new command interpreter but other than outputting the windows version it does nothing.

    I'm unsure whether the new CLI remains open or perhaps the updates are being applied without them being reported. Either way that line is useless.
     
  10. 2014/01/09
    hiker

    hiker Inactive Thread Starter

    Joined:
    2010/05/29
    Messages:
    6
    Likes Received:
    0
    The updates are not being installed. I'm beginning to think that the original poster of that instruction was just messing with people.
     
  11. 2014/01/10
    Steve R Jones

    Steve R Jones SuperGeek Staff

    Joined:
    2001/12/30
    Messages:
    12,314
    Likes Received:
    252
    WindowsXP-KB2345886-x86-ENU.exe /passive /norestart /n
    WindowsXP-KB970430-x86-ENU.exe /passive /norestart /n

    I wonder if those two lines need a Start command in front of them?

    Start WindowsXP-KB2345886-x86-ENU.exe /passive /norestart /n
     
  12. 2014/01/10
    lj50 Lifetime Subscription

    lj50 SuperGeek WindowsBBS Team Member

    Joined:
    2003/07/04
    Messages:
    2,801
    Likes Received:
    137
    Steve R Jones: I'm a member AKC Lost Pet Reunite Alert Network. So keep up the great work.
     
  13. 2014/01/10
    hiker

    hiker Inactive Thread Starter

    Joined:
    2010/05/29
    Messages:
    6
    Likes Received:
    0
    I've just about given up on this idea and am using Autopatcher instead.
     
  14. 2014/01/11
    ThomasJK

    ThomasJK Well-Known Member

    Joined:
    2009/04/26
    Messages:
    99
    Likes Received:
    4
    Steve R Jones wrote:
    "I wonder if those two lines need a start command in front of them?
    Start WindowsXP-KB2345886-x86-ENU.exe /passive /norestart /n "
    When launching an .exe file at the command prompt, start command is not
    needed. Just typing the executables name & hitting enter will run the
    program. There also seems to be few switches, after the .exe, /passive etc.
    But anyway, the line 3 is also strange, there is nothing to be redirected to
    the file "updatelog.txt ", and as the thread starter suspected, the original
    poster of that instruction was propably just messing with people.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.