PITU Posted April 30, 2008 Share Posted April 30, 2008 Hello,I am trying to build a batch which extracts all INF,SIF & INI Files from i386 folder in XPCD (SP3 integrated).But now I am at a point at which I do not know how to continue.In theory I wanted to do the following steps:1. Extract all INF,SIF & INI Files from i386 to folder _extracted2. For every file in "\i386\" search for file name in every file in _extracted3. Clean Logfiles: Delete every line ending with " : 0".4. Delete all files which are not empty5. The files remaining are files which file's names could not be found anywhere.These files can probably be removed!?Here is my attempt in Batch-Script. To use it, just Drag&Drop CD-Folder on it.cd "%1"cd i386mkdir _extractedmkdir _extracted\Logsmkdir _extracted\Logs2copy *.sif _extractedcopy *.inf _extractedcopy *.ini _extractedexpand -r *.in_ _extracteddel _extracted\*.incfor /f "tokens=1 delims=_" %%a in ('dir /b *._') do (find /C /I "%%a" _extracted\*.*>_extracted\Logs\%%a_.LOG)for /f %%a in ('dir /b _extracted\*') do echo : 0 >> _extracted\__files.datmove ..\__files.dat files.datcd ..for /f "tokens=1 delims=_" %%a in ('dir /b *') do (findstr /e /i /g:__files.dat %%a>Logs2\%%a_.LOG)Maybe some one can help me with this file so it's possible to look for unused files easily. /PITU Link to comment Share on other sites More sharing options...
PITU Posted April 30, 2008 Author Share Posted April 30, 2008 OK, I tried it myself and finally came up with this batch:cd "Kopie von WXP_SP3"cd i386mkdir _extractedmkdir _Logsmkdir _Logs2copy *.sif _extractedcopy *.inf _extractedcopy *.ini _extractedexpand -r *.in_ _extracteddel _extracted\*.incecho.Durchsuche IN*-Dateien nach jeder anderen Datei im Ordnerfor /f "tokens=1 delims=_" %%a in ('dir /b *.*') do (find /C /I "%%a" _extracted\*.*>_Logs\%%a_.LOG)echo.Filtere Log-Dateienfor /f %%a in ('dir /b _Logs\*.*') do (findstr /e /v /i ": 0" _Logs\%%a>_Logs2\%%a_2.LOG)for /f %%a in ('dir /b _Logs2\*.*') do (findstr /L "EXTRACTED" "_Logs2\%%a">_Logs3\%%a)rmdir _extractedrmdir _Logsrmdir _Logs2It a couple hours to run on my - not as fast as I want it to be - computer, but it produced my a list of 50 files which should by save to delete, as they are not mentioned in any INF, INI or SIF file. My "save-to-delete-list":ATOMIC.WM_BLUESKY.WM_COMPDATA_comsdupd.ex_faxpatch.exe_GOO.WM_HWDB.DLL_ICONIC.WM_Logs2_MARKET.IN_MSDWINTL.DL_MSN13.IN_MSN13.MA_MSN40.IN_MSN40.MA_MSN53.IN_MSN53.MA_MSN9XMIG.DL_MSNCSAPI.DL_MSNEMAIL.IC_MSNMIGR.IN_MSNREAD.HT_MSUNI11.DL_NV4.IN_oobedkn.ht_oobedn.ht_PERSONAL.WM_PRIVACY.HT_PRO.WM_RADIO.WM_RDSKTPW.CH_RUSTY.WM_sp2.cab_SQDLL.DL_SYSPARSE.EXE_tscupdc.dll_WIN9XMIG_WINNTBBA.DLL_WINNTUPG_WMMFILT.DL_WMMRES.DL_WMMUTIL.DL_WMPVIS.DL_WSDU.DLL_WSDUENG.DLL_XPTHT33D.JP_XPTHT41W.HT_XPTHT78D.JP_XPTHT79D.JP_XPTHT80D.JP_I will try what happens when installing without these files. But if you want to test whether these files are needed - do so and post your findings here./PITU Link to comment Share on other sites More sharing options...
Sonic Posted May 1, 2008 Share Posted May 1, 2008 nice try ! but I hope MS will release a clean SP3 winxp disc, so it can be used other than our home systems ;-)I always see a winxp sp2 integrated manually is more bloated than MS release ... so I always wait ms discs ... Link to comment Share on other sites More sharing options...
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