Jump to content

Using findstr to add entries to an inf/sif file?


Recommended Posts

I had a great idea for creating a batch file which automates the changes to winnt.sif and txtsetup.sif needed for integrating RAID/SATA drivers (thanks to jdeboeck for the inspiration :)) so as to avoid user error. I've figured out using the batches from jdeboeck's zip file how to remove entries from txtsetup.sif (and it worked flawlessly), but I haven't figured out (more importantly) how to add keys to txtsetup.sif.

Basically, I need to search out a key in txtsetup.sif (for example, [sCSI]), then add entries underneath it. I know I can use the echo command to add the entries once the key is found, but there inlies the problem. Any ideas?

Link to comment
Share on other sites


why not just make a new section? In general, you can make a new section in txtsetup.sif and it'll be used during setup. You don't have to use the section used in txtsetup.sif

-gosh

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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