1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Can't remove KB977165 with batch file

Discussion in 'Windows XP' started by ToddAndMargo, Feb 13, 2010.

  1. ToddAndMargo

    ToddAndMargo Flightless Bird

    Hi All,

    I am trying to write an automated (batch) way
    to remove KB977165. But even though I
    can do a "dir" on "Spuninst", I get a file not
    found. What am I doing wrong?

    Many thanks,
    -T


    ~~~~~~~~~~~~~~~~~~~~~batch file~~~~~~~~~~~~~~~~
    @echo off
    rem Remove KB977165

    c:
    cd %WinDir%
    cd ^$NtUninstallKB977165^$

    cd
    dir .\spuninst
    echo.
    ..\spuninst
    echo.

    pause

    ~~~~~~~~~~~~~~~~~~~~~result~~~~~~~~~~~~~~~~~~~~
    C:/WINDOWS\$NtUninstallKB977165$
    Volume in drive C has no label.
    Volume Serial Number is ECC4-E598

    Directory of C:/WINDOWS\$NtUninstallKB977165$\spuninst

    02/10/2010 01:09 PM <DIR> .
    02/10/2010 01:09 PM <DIR> ..
    05/26/2009 03:40 AM 231,288 spuninst.exe
    02/10/2010 01:10 PM 11,190 spuninst.inf
    02/10/2010 01:09 PM 1,348 spuninst.txt
    05/26/2009 03:40 AM 382,840 updspapi.dll
    4 File(s) 626,666 bytes
    2 Dir(s) 225,549,373,440 bytes free

    '.\spuninst' is not recognized as an internal or external command,
    operable program or batch file.

    Press any key to continue . . .
     
  2. PA Bear [MS MVP]

    PA Bear [MS MVP] Flightless Bird

    Beginning multiple, new threads on multiple newsgroups isn't helping, T.

    ToddAndMargo wrote:
    > Hi All,
    >
    > I am trying to write an automated (batch) way
    > to remove KB977165. But even though I
    > can do a "dir" on "Spuninst", I get a file not
    > found. What am I doing wrong?
    >
    > Many thanks,
    > -T
    >
    >
    > ~~~~~~~~~~~~~~~~~~~~~batch file~~~~~~~~~~~~~~~~
    > @echo off
    > rem Remove KB977165
    >
    > c:
    > cd %WinDir%
    > cd ^$NtUninstallKB977165^$
    >
    > cd
    > dir .\spuninst
    > echo.
    > .\spuninst
    > echo.
    >
    > pause
    >
    > ~~~~~~~~~~~~~~~~~~~~~result~~~~~~~~~~~~~~~~~~~~
    > C:/WINDOWS\$NtUninstallKB977165$
    > Volume in drive C has no label.
    > Volume Serial Number is ECC4-E598
    >
    > Directory of C:/WINDOWS\$NtUninstallKB977165$\spuninst
    >
    > 02/10/2010 01:09 PM <DIR> .
    > 02/10/2010 01:09 PM <DIR> ..
    > 05/26/2009 03:40 AM 231,288 spuninst.exe
    > 02/10/2010 01:10 PM 11,190 spuninst.inf
    > 02/10/2010 01:09 PM 1,348 spuninst.txt
    > 05/26/2009 03:40 AM 382,840 updspapi.dll
    > 4 File(s) 626,666 bytes
    > 2 Dir(s) 225,549,373,440 bytes free
    >
    > '.\spuninst' is not recognized as an internal or external command,
    > operable program or batch file.
    >
    > Press any key to continue . . .
     
  3. ToddAndMargo

    ToddAndMargo Flightless Bird


    > cd %WinDir%
    > cd ^$NtUninstallKB977165^$


    Figured it out. There is an extra 'spuninst" in
    the path

    Should be:
    cd ^$NtUninstallKB977165^$\spuninst

    Now that is embarrassing! :'[

    -T
     
  4. Peter Foldes

    Peter Foldes Flightless Bird

    You are not just multiposting but triple and quadruple posting. Stay with one post
    because it is making you look a little on the xxxxx side

    --
    Peter

    Please Reply to Newsgroup for the benefit of others
    Requests for assistance by email can not and will not be acknowledged.

    "ToddAndMargo" <ToddAndMargo@invalid.com> wrote in message
    news:-OIZt%23eQrKHA.4284@TK2MSFTNGP04.phx.gbl...
    >
    >> cd %WinDir%
    >> cd ^$NtUninstallKB977165^$

    >
    > Figured it out. There is an extra 'spuninst" in
    > the path
    >
    > Should be:
    > cd ^$NtUninstallKB977165^$\spuninst
    >
    > Now that is embarrassing! :'[
    >
    > -T
     

Share This Page