rdalling Posted June 7, 2004 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
thread Posted June 7, 2004 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
nuhi Posted June 7, 2004 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
thread Posted June 7, 2004 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
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