Jump to content

script to execute \dir\setup.exe recursive


Recommended Posts

Posted

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.


Posted

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.

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...