I have a directory which contains hundreds of other child directories, which all contain various INF files which I've extracted from a .CAB file.
I want to create a batch file that finds every single inf file in this directory and install it.
Code so far:
for /f %f in ('dir /s /b c:\temp_dir\*.inf') do rundll32 syssetup,SetupInfObjectInstallAction DefaultInstall 128 %f
In return, I get a critical message box appear hundreds of times saying "Installation failed". Please can someone point out my mistake because I'm completely stumped.
Environment: Windows 7 x64
Thanks in advance!