Jump to content

Recommended Posts

Posted

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 OFF
ECHO
ECHO Installing All Pre-SP2 Hotfixes...
ECHO Please Wait...
CD %systemdrive%\install\crits
for %%i in (*.exe) do start /wait %%i /Q /Z /U /N
ECHO Done.

EXIT


Posted

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.

Posted

I did the same here you go.

CLS
@echo off
ECHO Installing All Pre-SP2 Hotfixes...
ECHO Please Wait...
CD "%systemdrive%\install\Hotfixes
for %%i in (*.exe) do start /wait %%i -u -f -o -z -q -m
CD "%systemdrive%\install\Hotfixes1
for %%i in (*.exe) do start /wait %%i -u -f -o -z -q -m
ECHO Done.
ECHO Installing All Pre-SP2 Cumulative patches...
ECHO Please Wait...
CD "%systemdrive%\install\Hotfixes2
for %%i in (*.exe) do start /wait %%i /Q:A /R:N
ECHO Done.
ECHO Installing All Pre-SP2 Extra patches...
ECHO Please Wait...
CD "%systemdrive%\install\Hotfixes3
for %%i in (*.exe) do start /wait %%i /Q
ECHO Done.
EXIT

that last one is for the last fix repoerted jsut today but the switch still does not work for a silent install.

Posted
Genious :rolleyes:

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.

Posted

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>

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...