Re: A simple program to display numbers counting up

From: Jim B (jjbrailey_at_yahoo.co.uk)
Date: 03/27/04


Date: 27 Mar 2004 00:41:55 -0800

Hi Thanks for that.. It works fine on my PC at work (Win2000), but
every time I try to run it at home (Win98) I get Syntax Error.

Thanks for your help so far, any idea's on this?

Cheers

Jim

mensanator@aol.com (mensanator) wrote in message news:<fbf22ff1.0403251905.75649b8c@posting.google.com>...
> jjbrailey@yahoo.co.uk (Jim B) wrote in message news:<a1773d52.0403251158.c7b31e6@posting.google.com>...
> > Hi
> >
> > I have no programming experience or tools, however my 6 year old son
> > would like to watch the computer "count up" to see how high a number
> > it can get to!
> >
> > What is the best way to achieve this such that he can see the numbers
> > count upwards (i.e. slow enough that he can see 1, 2, 3, 4, etc)?
> >
> > Any thoughts and idea's or solutions greatly received!
> >
> > Thanks
> >
> > Jim
>
> Shall I assume you at least are using Windows?
>
> Open Notepad and type in the following three lines:
>
>
> @echo off
> cls
> for /L %%i in (1,1,%1) do for /L %%j in (1,1,%2) do if %%j==%2 echo %%i
>
>
> Save the file as count.bat in the My Documents folder.
>
> Start a command prompt. If your prompt isn't the My Documents folder,
> go there and type:
>
> count 100 10000
>
> to see numbers count from 1 to 100. The first number after count is how
> high to count and the second is the speed at which it counts. If it's
> counting too fast for your son to watch, enter a bigger number. If you
> get ridiculous and do something like
>
> count 1000000 100000
>
> you can interupt it by typing ctrl-C and when prompted
>
> Terminate batch job (Y/N)?
>
> type Y to stop it.



Relevant Pages

  • Re: How to detect locked linked xls file ?
    ... That did it Jim! ... looking at the child file and the child file is locked. ... parent brings up a prompt that allows you to retry the child file or cancel ... finally you can look at the parent file contents. ...
    (microsoft.public.excel.programming)
  • Re: Print to (Canon) ImageRunner from OpenVMS [force telnet]
    ... dies. ... access the TELNET> prompt ... syntax error in escape sequence ... Does not give me a prompt. ...
    (comp.os.vms)
  • Re: Device Detected Dialog Box
    ... I've never used the Command Prompt, ... Jim, I think you've taken me as far as I dare go. ... > looks like inside the DOS prompt. ...
    (microsoft.public.windowsxp.general)
  • Re: Text Box Problem
    ... > Hi Jim, ... > Thanks for your prompt reply. ... trap the entry to enforce a size or text length. ... Bob Greenblatt, Macintosh ...
    (microsoft.public.mac.office.excel)
  • Re: download word document from website
    ... In addition to what Jim says, make sure that you have the latest Office ... Service Packs. ... There was a bug in MS Office that cuased this behavior. ... document without this prompt? ...
    (microsoft.public.frontpage.client)