neophyte Posted August 21, 2003 Posted August 21, 2003 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
b0r3d Posted August 21, 2003 Posted August 21, 2003 Does that code work for all hotfixes?The reason i ask, is because some hotfixes use different switches from others.
neophyte Posted August 21, 2003 Author Posted August 21, 2003 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.
b0r3d Posted August 21, 2003 Posted August 21, 2003 Genious Would you mind posting them for my personal conveniance?
webmedic Posted August 21, 2003 Posted August 21, 2003 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.
neophyte Posted August 21, 2003 Author Posted August 21, 2003 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.
b0r3d Posted August 21, 2003 Posted August 21, 2003 why not just remove the root hotfix directory afterwards ?
neophyte Posted August 21, 2003 Author Posted August 21, 2003 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>
neophyte Posted August 21, 2003 Author Posted August 21, 2003 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.
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