1.

Solve : Batch (or .com) file to count on screen from 1 to?

Answer»

Years and years ago I wrote a (I think) batch file that would just START counting from one up to a million or so. Used it as smoke test for new computers I built and to just get ian dea of how fast computer was.

By time got up to 386s, they were too fast for the latter.

Anyhow, a friend's kid wants a program like this, and for the life of me I can't remember how I did it. Maybe it was in BASIC RATHER than a batch file, don't remember, but have forgotten all BASIC or GBASIC commands now that my brain RAM is down to 512K.

Can ANYBODY tell me how can write a simple program like this, and then run it from Win if possible, or if not, from DOS, so that it displays on the screen?

Many thanks.Here ya GO... 8-)

Code: [Select]FOR /L %%G IN (1,1,1000000) DO echo %%G
Just copy that and save as filename.bat and happy counting. Quote

Here ya go... 8-)

Code: [Select]FOR /L %%G IN (1,1,1000000) DO echo %%G
Just copy that and save as filename.bat and happy counting.

Many thanks, fffreak, that's even easier than the one I recall doing. Just what I needed.

I used to be a dosfreak, but that's outdated today.
Your welcome, Happy to help 8-)


Discussion

No Comment Found