Dear Bytes Community,
First of all I would like to thank you in advance for helping me.
I have been trying to write a batch code that will:
1. Auto execute after POST.
2. Increment a value that is suppose to represent number of the POSTs.
3. Save, display the value and restart the PC.
I have tried to write one that access a txt file for the value; however the value does not increment.
And I have a txt file that has X=0 for the value.
Thank you again for your help and I can't wait to get this over with.
T.J. Parsa
First of all I would like to thank you in advance for helping me.
I have been trying to write a batch code that will:
1. Auto execute after POST.
2. Increment a value that is suppose to represent number of the POSTs.
3. Save, display the value and restart the PC.
I have tried to write one that access a txt file for the value; however the value does not increment.
Code:
@echo off echo.This script is counting the # of POSTs. cd "C:\Users\HP-M6\Documents" for /f "tokens=* delims=" %%x in (TEST.txt) do echo %%x call:myPOSTTest for /f "tokens=* delims=" %%x in (TEST.txt) do echo %%x echo.&pause&goto:eof ::-------------------------------------------------------- ::-- Function section starts below here ::-------------------------------------------------------- -- :myPOSTTest - here starts my function identified by it's label cd "C:\Users\HP-M6\Documents" for /f "tokens=* delims=" %%x in (TEST.txt) do ( set %x%+=1 ) goto:eof
And I have a txt file that has X=0 for the value.
Thank you again for your help and I can't wait to get this over with.
T.J. Parsa