MSFN Forum: script to execute \dir\setup.exe recursive - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

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

script to execute \dir\setup.exe recursive from xp Rate Topic: -----

#1 User is offline   diveboy 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 12-July 05

Posted 08 September 2005 - 09:38 PM

Hi all,

I have my dell drivers all dumped in c:\drivers with each driver in a sub directory ie.

c:\drivers\nic
c:\drivers\video
c:\drivers\audio
c:\drivers\chipset

they all use an installed shield, so easy enough to script silent install with setup /s in a batch file using each subdirectory.

What I want to do is have a batch file that will just recursive execute setup.exe /s in all subdirectory under c:\drivers, this way I don't have to have a custom install batch for each model of machine the build supports.

any ideas ?

I am using this for tweaks but I don't think it handles sub directories.

for %%i in (%systemdrive%\support\tweaks\*.reg) do start /wait REGEDIT /S %%i

thanks in advance.

Michael.


#2 User is offline   IcemanND 

  • MSFN Junkie
  • Group: Super Moderator
  • Posts: 3,249
  • Joined: 24-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 September 2005 - 11:20 PM

for /f %%i in ('dir /b /s setup.exe') do start /wait %%i /s

#3 User is offline   diveboy 

  • Newbie
  • Group: Members
  • Posts: 14
  • Joined: 12-July 05

Posted 08 September 2005 - 11:43 PM

thanks IcemanND,

ended up with

for /f %%i in ('dir %systemdrive%\support\drivers /b /s setup.exe') do start /wait %%i\setup.exe /s

all working, now I can be real lazy while the machines build off the one image.

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