When you right click on a .inf file you have an option to \"Install\". I want to install a .inf file from the command line using a batch file. What is the \"right\" way to do th
rem tested/works :inf ver | findstr /il "Version 6." > nul if %ERRORLEVEL%==0 goto :vista :xp start/wait rundll32.exe setupapi,InstallHinfSection DefaultInstall 4 %_% goto :eof :vista %SystemRoot%\System32\InfDefaultInstall.exe "%_%" :eof