Duki 552 Nearly a Posting Virtuoso

Hey all,

I'm trying to write a batch file to parse a text file I have. Here's the pseudo code I'm trying to pull off:

Example makefile.txt:

text text text
text text text
text text text text text text
text text text text text text
text text text

T1 = SomeFileToProcess
T2 = AnotherFileToProcess
--------------

all: $(T1) $(T2)

//Given:  current directory has makefile.txt
While !eof
    If "$(T1)" exists in makefile.txt
        echo "T1 = SomeFileToProcess"
    If "$(T2)" exists in makefile.txt
        echo "T2 = AnotherFileToProcess

Is this possible with a batch file? Is there another native XP language that would be easier to write this in?

Thanks for any help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.