@if "%1c"=="c" goto usage
@goto install

:usage
@echo.
@echo USAGE: Install [current-working-directory]
@echo The current-working-directory is the full path containing all the
@echo IMB driver installation files, including this command file.
@echo.
@echo Example:
@echo.
@echo         Install C:\IMBDRV\Test
@echo.
@goto error

:install
@set INSTALL_DIR=%1
@echo.
@echo Installing IMB driver...
@echo.
DeviceSetup.exe install %INSTALL_DIR%\imbdrv.inf *IMBDRV
@echo.
@echo Installing  Intel Utils driver...
@echo.
DeviceSetup.exe install %INSTALL_DIR%\IBSMUtil.inf *IntelUtilDeV 
@if ERRORLEVEL 2 goto error
@goto done

:done
@echo Done!
@echo.
@echo Successfully installed the IMB driver!
@echo.
@goto exit

:error
@echo.
@echo @@@@ Error installing IMB driver @@@@
@echo.

:exit


