diveboy Posted September 9, 2005 Share Posted September 9, 2005 Hi all,I have my dell drivers all dumped in c:\drivers with each driver in a sub directory ie.c:\drivers\nicc:\drivers\videoc:\drivers\audioc:\drivers\chipsetthey 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 %%ithanks in advance.Michael. Link to comment Share on other sites More sharing options...
IcemanND Posted September 9, 2005 Share Posted September 9, 2005 for /f %%i in ('dir /b /s setup.exe') do start /wait %%i /s Link to comment Share on other sites More sharing options...
diveboy Posted September 9, 2005 Author Share Posted September 9, 2005 thanks IcemanND,ended up with for /f %%i in ('dir %systemdrive%\support\drivers /b /s setup.exe') do start /wait %%i\setup.exe /sall working, now I can be real lazy while the machines build off the one image. Link to comment Share on other sites More sharing options...
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