Pantner Posted December 22, 2005 Posted December 22, 2005 Ok, a while ago, i found a command on this site (i think) that would list all the files in a single directory and then output them to a TXT file...im setting up a new Unattended install, and need t do the updates, im using the SVCPACK method...does anyone know wat it is???i tried searching, but came up with nada
druiddk Posted December 22, 2005 Posted December 22, 2005 (edited) Hi,Well you could use this command to output it to a txt file:dir /B C:\LOCATION\OF\KB\FILES\*.EXE > C:\WHERE\TO\OUTPUT\FILE.TXTJust make sure you dont have any other EXE files in the same folder. Edited December 22, 2005 by druiddk
Shamwari Posted December 22, 2005 Posted December 22, 2005 (edited) Are you trying to automate the patching of your XP source with the latest hofixes? If you are, you could use the following cmd found at Gadgets and Tech news:@Echo offrem ////////////////////////////////////////////////////////////////////////////rem // IntegrateAll.batrem // This Batch file integrates the hotfixes for Windows XP SP2rem // Syntax:rem // Integrateall <DistributionFolder>rem ////////////////////////////////////////////////////////////////////////////if "%~1" == "-p" goto Processrem ////////////////////////////////////////////////////////////////////////////rem // Main routinerem // %1 contains Optionsrem //rem //rem // Verify that we are pointing to a distribution folder baserem //if exist "%~1\I386" goto FolderExistsecho -- "%~1" is not a distribution folder.echo Syntax:echo IntegrateAll ^<DistributionFolder^>goto END:FolderExistsecho ::: Integrating Updates :::set DISTDIR="%~1"set HFINT="%~1\i386\svcpack\HFINT.DAT"set HFINTTEMP="%~1\i386\svcpack\HFINT.TMP"rem // rem // Do 885835 and then 885250 to start with. There is a conflict here. Sorem // we need to do some special processing. Note: 885835 is superceeded byrem // 885250 but we want an entry so that the hotfix show as installedrem //call %0 -p KB885835 "KB885835.exe" rem // Modify the line mrxsmb.sys (change it to mrxsmb.sys.tmp)for /f "usebackq" %%L in (%HFINT%) DO ( if %%L==mrxsmb.sys ( echo %%L.tmp>>%HFINTTEMP% ) else ( echo %%L>>%HFINTTEMP% ))move /y %HFINTTEMP% %HFINT% > NULrem // Integrate 85250 call %0 -p KB885250 "KB885250.exe" rem // Modify the line back (change the mrxsmb.sys.tmp back to mrxsmb.sys)for /f "usebackq" %%L in (%HFINT%) DO ( if %%L==mrxsmb.sys.tmp ( echo mrxsmb.sys>>%HFINTTEMP% ) else ( echo %%L>>%HFINTTEMP% ))move /y %HFINTTEMP% %HFINT% > NULrem //rem // Now integrate all the rest of the hotfixes.call %0 -p KB873339 "KB873339.exe" call %0 -p KB885626 "KB885626.exe" call %0 -p KB885836 "KB885836.exe" call %0 -p KB886185 "KB886185.exe" call %0 -p KB887742 "KB887742.exe" call %0 -p KB888113 "KB888113.exe" call %0 -p KB888302 "KB888302.exe" call %0 -p KB890046 "KB890046.exe" call %0 -p KB890859 "KB890859.exe" call %0 -p KB891781 "KB891781.exe" call %0 -p KB893066 "KB893066.exe" call %0 -p KB893756 "KB893756.exe" call %0 -p KB893803 "KB893803.exe" call %0 -p KB894391 "KB894391.exe" call %0 -p KB896358 "KB896358.exe" call %0 -p KB896422 "KB896422.exe" call %0 -p KB896423 "KB896423.exe" call %0 -p KB896424 "KB896424.exe" call %0 -p KB896428 "KB896428.exe" call %0 -p KB896688 "KB896688.exe" call %0 -p KB899587 "KB899587.exe" call %0 -p KB899589 "KB899589.exe" call %0 -p KB899591 "KB899591.exe" call %0 -p KB900725 "KB900725.exe" call %0 -p KB901017 "KB901017.exe" call %0 -p KB901214 "KB901214.exe" call %0 -p KB902400 "KB902400.exe" call %0 -p KB904706 "KB904706.exe" call %0 -p KB905414 "KB905414.exe" call %0 -p KB905749 "KB905749.exe" echo.echo ::: Done :::echo.goto ENDrem ////////////////////////////////////////////////////////////////////////////rem ////////////////////////////////////////////////////////////////////////////:Processrem //rem // %2 will contain the KB numberrem // %3 will contain the Exe file namerem //echo Integrating %2"%~3" /integrate:%DISTDIR% /passive:EndProcessgoto ENDrem ////////////////////////////////////////////////////////////////////////////:END Edited December 22, 2005 by Shamwari
Pantner Posted December 22, 2005 Author Posted December 22, 2005 @druiddk, thats the one!@Shamwari...hmm, thats a little too complicated for me me thinks...but thanks anyway...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now