T
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~~~~~~~~~~~~~~~~~~~~
CWINDOWS\$NtUninstallKB977165$
Volume in drive C has no label.
Volume Serial Number is ECC4-E598
Directory of CWINDOWS\$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 . . .
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~~~~~~~~~~~~~~~~~~~~
CWINDOWS\$NtUninstallKB977165$
Volume in drive C has no label.
Volume Serial Number is ECC4-E598
Directory of CWINDOWS\$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 . . .