rdalling Posted June 7, 2004 Share Posted June 7, 2004 I am trying to add a build version to my unattended build process;I have a flat text file that only includes a number and I need to read the file and use the number Buildno.txt125batch.batset Buildno=c:\Buildno.txtecho Echo Line5 = "Internal XP Build Number: %Buildno%" >>%SystemRoot%\System32\OEMINFO.iniI have tried 10-12 different things and haven't resolved it...Please HELP!Roger Link to comment Share on other sites More sharing options...
thread Posted June 7, 2004 Share Posted June 7, 2004 well, the problem is with your set command...you need to figure out a way to get it to use 125 instead of c:\buildno.txt...ill play with it a bit, but thats where the error exists.do this instead...for /f %%i in (c:\buildno.txt) do set buildno=%%i Link to comment Share on other sites More sharing options...
nuhi Posted June 7, 2004 Share Posted June 7, 2004 There you go, enjoy @echo offfor /f %%i in (Buildno.txt) do set BUILDNO=%%iecho Line5 = Internal XP Build Number: %BUILDNO%pauseedit: thread, look at the time, 3 minutes, i was writing it while you posted it Link to comment Share on other sites More sharing options...
thread Posted June 7, 2004 Share Posted June 7, 2004 lol, yea, I see LOL...but you did complete the batch file for him...You prolly woulda beat me if I did...PS nuhi, im gonna PM you Link to comment Share on other sites More sharing options...
rdalling Posted June 8, 2004 Author Share Posted June 8, 2004 Thanks guys, works great. Roger Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now