August 21, 200323 yr I'm using a batch file to run a whole lot of critical updates (I found it in one of the threads here) after installing XP.However, it is creating a series of folders in my d: drive (a secondary hard drive) that do not remove themselves after the patches have been run.Any reasons why?This is the batch file:CLS@ECHO OFFECHOECHO Installing All Pre-SP2 Hotfixes...ECHO Please Wait...CD %systemdrive%\install\critsfor %%i in (*.exe) do start /wait %%i /Q /Z /U /NECHO Done.EXIT
August 21, 200323 yr Does that code work for all hotfixes?The reason i ask, is because some hotfixes use different switches from others.
August 21, 200323 yr Author I have my hotfixes sorted into folders so that those requiring the /Q:A /R:N switches are in a seperate folder to this. I then run one batch file, and then run the other.
August 21, 200323 yr I did the same here you go.CLS@echo offECHO Installing All Pre-SP2 Hotfixes...ECHO Please Wait...CD "%systemdrive%\install\Hotfixesfor %%i in (*.exe) do start /wait %%i -u -f -o -z -q -mCD "%systemdrive%\install\Hotfixes1for %%i in (*.exe) do start /wait %%i -u -f -o -z -q -mECHO Done.ECHO Installing All Pre-SP2 Cumulative patches...ECHO Please Wait...CD "%systemdrive%\install\Hotfixes2for %%i in (*.exe) do start /wait %%i /Q:A /R:NECHO Done.ECHO Installing All Pre-SP2 Extra patches...ECHO Please Wait...CD "%systemdrive%\install\Hotfixes3for %%i in (*.exe) do start /wait %%i /QECHO Done.EXITthat last one is for the last fix repoerted jsut today but the switch still does not work for a silent install.
August 21, 200323 yr Author Genious Would you mind posting them for my personal conveniance? It's pretty much like webmedic's post.However, I'm still having problems working out why these folders are created after running them.They only occur for files in which the /Q /U /Z switches are run.This is driving me insane, as I don't want to have all those icky folders floating about.Anyway, I guess I'll just have to test it some more.
August 21, 200323 yr Author Never fear. Apparently rebooting the system clears all the folders out that it uses.However, to delete the folder that is created by the $OEM$ directory on the cd, you do need to do an rmdir /Q /S %systemdir%\<folder>
August 21, 200323 yr Author Meh. rmdir /Q /S works just as well.I'm still curious as to why those randomly named folders are placed on my secondary hard disk and not on my primary (C:) as one would assume.
Create an account or sign in to comment