Re: CAB compress Windows 7 Drivers
FOR /R %%X NOT IN (
use NOT or NE or <>
You'll need to test a little to see which syntax works as expected.
The DriverPacks, the DP_Base program, and Support Forum are FREE!.
You are not logged in. Please login or register.
FOR /R %%X NOT IN (
use NOT or NE or <>
You'll need to test a little to see which syntax works as expected.
I could only get it to work by using multiple IF statements for each excluded extenstion:
FOR /R %%A IN (*.*) DO IF %%~xA NEQ ._ IF %%~xA NEQ .cmd IF %%~xA NEQ .cat IF %%~xA NEQ .ini IF %%~xA NEQ .inf IF %%~xA NEQ ._ IF %%~xA NEQ .vp IF %%~xA NEQ .cab CD /D "%%~dpA"& MAKECAB /V2 "%%A"& DEL /F /Q "%%A"& ECHO %%~dpX%%A>>"%~dp0makecab.log"
There is however one problem. This will not exclude any files that have already been cab compressed (*.*_). Batch IF statements don't support wildcards, so I do not know how this could be done without an external program.
So for now I will probably just stick to my previous example that won't double compress any files.
I've continued testing this on a few more computers and haven't run into any issues yet.
I also downloaded the newest AMD HD driver and cab'd it, and it still worked fine. However I don't think NVidia's would work because many of the files are already cab compressed.
I will continue to test and post my results if any issues come up.
This is the latest command line I've used:
FOR /R %%X IN (*.exe, *.ax, *.dll, *.sys, *.dat, *.drv, *.rtf, *.htm, *.html, *.txt, *.xml, *.man, *.lrc, *.ico, *.inx, *.iss, *.mst, *.mui, *.nvi, *.tvp, *.oem, *.nvu, *.pop, *.pnf, *.resources, *.rfx, *.rom, *.s3, *.strings, *.svc, *.tip, *.uda, *.vxd, *.msi, *.wav, *.wmv, *.wma, *.mpg, *.avi, *.bmp, *.jpg, *.png, *.gif, *.tif, *.xsd, *.bin, *.cfg, *.config, *.cpl, *.cur, *.cpa, *.cva, *.deb, *.def, *.din, *.dir, *.ds, *.forms, *.h, *.hdr, *.hgp, *.icm, *.js, *.lib, *.lng, *.sf2, *.sfb, *.sfm, *.syn, *.tag) DO CD /D "%%~dpX"& MAKECAB /V2 "%%X"& DEL /F /Q "%%X"& ECHO %%~dpX%%X>>"%~dp0makecab.log"
thanks nibus very helpful. trying. over 2 Gb drivers become 500mb... no idea working well or not....
by the way can the xp driver working with this too?
Last edited by cyberloner (2015-01-22 04:32:02)
DriverPacks BASE does this for XP automatically if you select Method 1 (or M1) to add your drivers to XP.
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.
[ Generated in 0.016 seconds, 11 queries executed ]