Echo without newline query
- From: Dr J R Stockton <jrs@xxxxxxxxxxxxxxxxxx>
- Date: Sun, 17 Aug 2008 16:46:34 +0100
I am using, executed with WSH at a WinXP sp3 command prompt by
CSCRIPT $1.JS,
for (Y=0 ; Y<=6e6 ; Y++) {
// ...
if (Y%1e5 == 0) WScript.echo(Y) // show progress
}
to show progress. Of course, that generates 61 lines on-screen, as the
echo is of "number CR LF". Is there a way of showing progress on one
line? In Pascal, I would use "Write(number, ^M);" where ^M gives CR.
It's a good idea to read the newsgroup c.l.j and its FAQ. See below.
--
(c) John Stockton, nr London UK. ?@merlyn.demon.co.uk IE7 FF2 Op9 Sf3
news:comp.lang.javascript FAQ <URL:http://www.jibbering.com/faq/index.html>.
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
.
- Follow-Ups:
- Re: Echo without newline query
- From: Evertjan.
- Re: Echo without newline query
- Prev by Date: Re: Run JScript.Net executable on Compact Framework
- Next by Date: Re: Echo without newline query
- Previous by thread: Run JScript.Net executable on Compact Framework
- Next by thread: Re: Echo without newline query
- Index(es):
Relevant Pages
|