Can't remove KB977165 with batch file

Here you can find everything you need to know about Dll-Files. You can also share your knowledge regarding the topic.

Moderators: DllAdmin, DLLADMIN ONLY

Post Reply
toddandmargo
Posts: 2
Joined: 13 Feb 2010, 00:00

Can't remove KB977165 with batch file

Post by 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 . . .

advertisement
toddandmargo
Posts: 2
Joined: 13 Feb 2010, 00:00

Re: Can't remove KB977165 with batch file

Post by 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

pa bear [ms mvp]
Posts: 117
Joined: 01 Mar 2009, 00:00

Re: Can't remove KB977165 with batch file

Post by pa bear [ms mvp] »

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

Post Reply