Your question is quite vague. If both files (your installer.bat
and the inf
file) are in the same directory then you can add pushd "%~dp0"
at the start of your batch-script:
@echo off
pushd "%~dp0"
%SystemRoot%\System32\InfDefaultInstall.exe "DroidInstaller.inf"
This will set the working directory to the directory where your batch-script runs in. If this directory is the same as the directory of your inf
file then you are able to call the DroidInstaller.inf
the way you did in your question.