|Hello, First of all thank you for the fast replys.|
The layout here confused me a while so i couldnt see that i have any answers up to the moment where i checked my mails back...
thank you both for the solution of mathemathial increment i solved it for now with:
set /a Num=0
set /a num=%Num%+1
echo Current Value for Count is %Num%
:echo %Num% > "%BatCount%" // should send number of count to batcount
::works perfect first line gets overwritten and with reset or next start of batch i try to load it as Actual %Num%
:::call %BatCount% for /a %%a do( set /a Num=%%a:::::::issue here now
echo Current Value for Count is: %Num%
echo Loading done!
i found after a while that sumone else tried it in a similar way but i cannot adapt the technic
obviously the This For loop breaks my neck since i seem to stumble consequently about it
i will attach the link to the "Head" script as this user called it
The topic is leading to confusion eventually but i examined the function of the counter there in order to make mine working without luck.
If somone is able to explain the file reading/ eventually i should say appending functions specially for this case, i would really apreciate it.
Also iam asking for your input because i try just to store a single number i see a second bat file in general as "overtuned" would there be a form that allows to write and replace a line within the same file store num as value and variable, i know it from things like exel and other applications, codelanguages in theorie it should be possible, any example about storing data to particular line in same file and read it again for further use, would be very apreciated as well, in order to see what will be the technically nicer solution...
Btw: If someone is that kind to write or to crosslink to a general explanation for dummies like me, about file writing/reading/appeding it would be awsome to use no matemathical calculations fot this explanation, due to the fact that my brain simply cant handle math very well. words phrases suffixes fine and +1 i could manage as well :) )
And further i hope that i answer here again in the right tab iam sorry if not and would apreaciate the acording corrections to be taken by forum admin or send to me in order to correct it)
Also i see it looks a little offtopic right now in general with that title so i will try to leave the ready code here at the end that "Really" is related with the title userinput variables to Choice.
Thank you for your help.. youre all amazing!
edit: Sorry for playing with votes had to find out what it is ad what it does (if anyone feels offended, please complain), and hopefully its still possible for you to answer even if its marked as solved :/