Extraction Script
Here is a script that I am using. it pulls info from a driverpacks.ini. the info listed in this file looks like:
optiplex 755=755.7z
optiplex 960=906.7z and so on
I have verified that the first 2 values %%i and %%k are pulled corectly and match up but the %%l value does not. it is suppose to get the name of the device match it with the name in the driverpack.ini file the set DRVPACK to the value after the = sign from driverpacks.ini. I need help getting this to work please. Thank You ahead of time.
rem Get computer model and extract right driverpackage
winbios.exe | findstr "Product Name" > info.txt
FOR /F "usebackq delims== tokens=2 delims==" %%i IN (`type info.txt`) DO set MODEL=%%i
FOR /F "usebackq delims== tokens=1,2 delims==" %%k IN (`type driverpacks.ini`) DO (
if "%%k"=="%MODEL%" set DRVPACK=%%l && GOTO EXTRACT
)
:ERROR
echo Can't find correct driverpackage to your computer
echo Please fix this problem and run start_sysprep.cmd again
echo.
pause
exit 1
:EXTRACT
7za.exe x -y -o..\Drivers\ driverpacks\%DRVPACK%
:END
optiplex 755=755.7z
optiplex 960=906.7z and so on
I have verified that the first 2 values %%i and %%k are pulled corectly and match up but the %%l value does not. it is suppose to get the name of the device match it with the name in the driverpack.ini file the set DRVPACK to the value after the = sign from driverpacks.ini. I need help getting this to work please. Thank You ahead of time.
@echo offrem Get computer model and extract right driverpackage
winbios.exe | findstr "Product Name" > info.txt
FOR /F "usebackq delims== tokens=2 delims==" %%i IN (`type info.txt`) DO set MODEL=%%i
FOR /F "usebackq delims== tokens=1,2 delims==" %%k IN (`type driverpacks.ini`) DO (
if "%%k"=="%MODEL%" set DRVPACK=%%l && GOTO EXTRACT
)
:ERROR
echo Can't find correct driverpackage to your computer
echo Please fix this problem and run start_sysprep.cmd again
echo.
pause
exit 1
:EXTRACT
7za.exe x -y -o..\Drivers\ driverpacks\%DRVPACK%
:END
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
aogilmor
15 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.