Install Driver From Local Network

Install Driver From Local Network by Batch

Method 1:

SET loc=%cd%

REM *** Checking for 32bit or 64bit ***
set drivercmd="%loc%\dpinst64.exe"
) ELSE (
set drivercmd="%loc%\dpinst32.exe"

ECHO Installing drivers. Please wait...
::Set Error Level


%drivercmd% /s /sh /path Z:\VM\wifi
IF %ERRORLEVEL% EQU 1 color a & Echo okay !!!!!! & call car.bat
IF %ERRORLEVEL% EQU 256 Echo Already Installed or Error



Method 2 :

@echo off&color a && Title [ MULTI .INF INSTALLER ]

::= Multi-PnP.Installer.cmd =
:: Put all Pnf, Infs, Cat, and Sys files etc. in directories inside this one!

:: Install Driver From NetWork
cd /d z:
cd Z:\VM\wifi

:: Scan and Echo .inf files duing install
for /f "tokens=* delims=" %%a in ('dir /b /s /o:gen *.inf') do (
echo == Installing PnP Drivers == "%%a"

:: Delay
ping -n 4 localhost 1>nul

:: Windows Plug-n-Play Installer
start /min pnputil -i -a "%%a"
echo %%a
echo * DONE *
echo == Reboot to finalize driver installs! ==&pause>nul


Leave a comment

Your email address will not be published. Required fields are marked *