1.

Solve : Batch Parser?

Answer» QUOTE from: Lemonilla on December 19, 2013, 02:02:00 PM
@echo off
REM set start of loop1
:loop1
REM set %a% to 100,000
set a=100000
REM set the start of the loop2
:loop2
REM increment %a% by 1
set /a a +=1
REM display %a% value
echo %a%
REM set close of loop2 in if statment
if not "%a%"=="1000000" goto :loop2
REM go back to loop1 to reset %a%
goto :loop1



Use this concept, hopefully it's what you need.

Thanks, that should provide me with the idea I need... should be able to get what I need from that.

I just need it as a kind of error-handling... the script will be executed about once a day, so it'll take a few years to reach the max number.
I just want to add that functionality soon, in case we all forget about that and a few years from now the SCANNERS won't recognise the barcodes because the numbers are too HIGH


@patio: I adore words which aren't heard as often in modern times...

@ghostdog: I learned some perl a few years back, but the computer on which this script is running is quite the oldtimer, so I don't want to impair the performance by adding further runtimes or so... that's why I want to try it using windows internal means... Quote from: rioc on December 20, 2013, 01:49:35 AM
@patio: I adore words which aren't heard as often in modern times...

I too have a love of English - crazy language that it is, with so many pitfalls for those learning it as a second language.

Quote from: rioc on December 19, 2013, 05:20:58 AM
Bligh me...

I think you mean 'blimey' from the LAND of Mad Englishmen.

Also, to make it easier to keep track of the number you are on, keep in mind you can do this:
'set /p a=<Text.txt' to grab the first line of a text file into %a%.


Discussion

No Comment Found