Can't remove KB977165 with batch file

T

ToddAndMargo

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 . . .
 
T

ToddAndMargo

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
 
P

Peter Foldes

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 said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top