MSFN Forum: Folders created when running batch for critupdates - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Folders created when running batch for critupdates ergh! Rate Topic: -----

#1 User is offline   neophyte 

  • *Purrrr*
  • PipPipPip
  • Group: Members
  • Posts: 395
  • Joined: 20-August 03

Posted 20 August 2003 - 09:05 PM

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



#2 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 20 August 2003 - 09:15 PM

Does that code work for all hotfixes?
The reason i ask, is because some hotfixes use different switches from others.

#3 User is offline   neophyte 

  • *Purrrr*
  • PipPipPip
  • Group: Members
  • Posts: 395
  • Joined: 20-August 03

Posted 20 August 2003 - 10:26 PM

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.

#4 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 20 August 2003 - 10:47 PM

Genious :rolleyes:

Would you mind posting them for my personal conveniance? :)

#5 User is offline   webmedic 

  • fixer of things broken
  • PipPipPipPip
  • Group: Members
  • Posts: 621
  • Joined: 15-August 03

Posted 21 August 2003 - 12:38 AM

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.

#6 User is offline   neophyte 

  • *Purrrr*
  • PipPipPip
  • Group: Members
  • Posts: 395
  • Joined: 20-August 03

Posted 21 August 2003 - 04:15 AM

b0r3d, on Aug 21 2003, 05:47 AM, said:

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.

#7 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 21 August 2003 - 05:05 AM

why not just remove the root hotfix directory afterwards ?

#8 User is offline   neophyte 

  • *Purrrr*
  • PipPipPip
  • Group: Members
  • Posts: 395
  • Joined: 20-August 03

Posted 21 August 2003 - 06:44 AM

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>

#9 User is offline   b0r3d 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 821
  • Joined: 03-August 03

Posted 21 August 2003 - 07:07 AM

You dont need the switches.

rd %systemdir%\folder

#10 User is offline   neophyte 

  • *Purrrr*
  • PipPipPip
  • Group: Members
  • Posts: 395
  • Joined: 20-August 03

Posted 21 August 2003 - 07:22 AM

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy