1.

Solve : How to search string using a batch file?

Answer»

How do you SEARCH and replace a particular string in a couple of INF's using a batch file GIVEN the location where the INF's are storedit seems to me that you are stepping into a dangerous zone by using a batch file to search and replace.

suppose the string you are looking to replace resides in an unrelated file and that is also replaces.  are you not better off to use the search for text command in the directory you WANT to explore and then use a text editor?it isnt very dangerous actually! I do it all the time

all you need to know is :

SET asdf=asdf

set asdf=%asdf:df=34%

echo %asdf%

(now asdf = as34)

the string after the : gets replaced with what ever is after the second equals sign
HOPE it helped
  great  file

what does the adsf stand for?Where do you put the file name?



Discussion

No Comment Found