Jump to content

Having Windows Keep The Drivers


X-Savior

Recommended Posts

Sorry, I jsut don't like "Auto" on something I can't control. I prefer to add the drivers my self so I have 100% Control over what is going into MY install. :)

Just don't want my of my work being changed.

Link to comment
Share on other sites


I am asking anyone who reads this...

If you can make a program to scan a directory, and list all the file names it finds in a .TXT file. That way we can then copy and paste out of it and into our DRVINDEX.INF it will make maintaining the CAB a very simple matter.  :thumbup

dir /b > filename.txt

simple enough if this is what you are talking about

Link to comment
Share on other sites

Thank You VERY MUCH Silver!

You caught me by surprise... :blushing: I am quite familiar with the prompt but you blindsided me with that one. :yes:

Problem Solved! That saves us a HUGE amount of time.

Thank you for contributing! :thumbup

Link to comment
Share on other sites

I don't know what everyone else thinks but This Thread should be moved to "Sticky"

:)

Very useful information for anyone who is looking to integrate drivers on a permenant basis. :thumbup

What do the Other 2400 People to have read this Thread Think? B)

Link to comment
Share on other sites

Yeah! I agree with X-Savior.

I think that alot of people here are very intersted in this method.

I always hate it to install new devices because then I would have to get the driver CD (and I am so ***** lazy :P ) And i think that this is the same for a lot of people.

Besides, we need testers!!

Bashrat, can you make this a sticky, and can you move this topic to "Device Drivers" I think this huge topic is in the wrong place :D

Now about the manual that I released, I will release an updated version tonight with some more detailes and with a lot less typos :blushing:

Link to comment
Share on other sites

I am asking anyone who reads this...

If you can make a program to scan a directory, and list all the file names it finds in a .TXT file. That way we can then copy and paste out of it and into our DRVINDEX.INF it will make maintaining the CAB a very simple matter.  :thumbup

dir /b > filename.txt

simple enough if this is what you are talking about

don't know if this helps but

dir /s /b > filename.txt

will not only list files in primary but also all subdirs into a txt file.

Link to comment
Share on other sites

@Beagz

Thanks, you are completely right. Without /S it doesn't work with subdirs.

Now we face another problem.

We only need the filenames without the subdir (we don't want subdirs in Drvindex.inf, because the hardware wizard will scan the entire .CAB file (subdirs included)

Does anyone have an idea how to do this?

Link to comment
Share on other sites

ok here's what I got.

first do a listing of all directories of DP and save to dirs.txt

dir /s /a:d /b >dirs.txt

next parse the dirs.txt file and list all files in each dir

for /f %a in (dirs.txt) do dir /a:-d /b >test.txt %a

what I don't know how to do is to append the test.txt instead of rewriting it.

Link to comment
Share on other sites

I think this should work:

@ECHO OFF
set output=%CD%\result.txt

if exist "%output%" del /q "%output%"
call :traverse "%cd%"
goto EOF

:traverse
pushd %~f1
for %%I in (*) do (
 if not exist "%output%" echo %%I >> "%output%"
 findstr /L /I "%%I" "%output%" > NUL
 if errorlevel 1 echo %%I >> "%output%"
)
for /d %%I in (*) do (
  call :traverse "%%I"
)
popd
goto EOF
:EOF

Basically it's a modified OemPnPDriversPath.cmd from BTS' SriverPacks. What it does, is scan the current directory and subdirectories and list all files, without directory names, it finds in result.txt in the current directory.

It's even smart enough to filter duplicate entries.

@Beagz: To append to a file instead of overwriting it use >> filename.txt instead of > filename.txt

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...