batch script that updates the version number values in a text file
<p>Hi I am trying to write a script that updates the MAJOR and MINOR version numbers in a header/text file, I am trying to use the "FOR /F " command but out of ideas.
Below is the Header file to which I need to update the values corresponding to "MAJOR_VERSION" and "MINOR_VERSION  "</p>

<pre><code>#ifndef _VERSION_H_
#define _VERSION_H_

//---------- Lock Firmware Package Version ------------
//Lock firmware package 
#define MAJOR_VERSION    3       //0-255
#define MINOR_VERSION    58      //0-255
#define REVISION_VERSION 0       //0-255 should generally always be 0 unless the meaning change

//---------- VERSION ----------------------
</code></pre>