@echo off

REM install.cmd - Recursively install all .inf drivers in current and subdirectories
REM Author: Sammy Wu Team
REM Note: Please run this script as Administrator

echo Starting driver installation from all subdirectories...

REM Recursively search for all .inf files and install them using pnputil
for /R %%f in (*.inf) do (
    echo Installing %%f ...
    pnputil /add-driver "%%f" /install
)

echo All drivers have been installed.

