Page 1 of 1
Output line of text without line feed
Posted: 19 Mar 2008 11:14
by xyratest
Is there any way in DOS to output a line of text without a CR/LF (ie with overwrite)? For example I am using a countdown timer that I would like to print out on the same line "Delay 30 Seconds", "Delay 20 Seconds"...overwriting each countdown statement. Thanks.
Posted: 27 Mar 2008 17:37
by Chase
I've seen scripts doing something like this by clearing the whole screen (cls), but that's probably now what you want.
I know for sure that it's possible with command line applications written in C/C++, no idea for batch scripts though
Posted: 28 Mar 2008 20:08
by DosItHelp
xyratest,
An alternative is to use the TITLE for progress output. The advantage is that you can minimize the batch window and still observe the progress in the task bar, since the task bar text will always reflect the window title text.
Here are two different examples:
http://www.dostips.com/DtCodeSnippets.php#Snippets_ExitDelayed
http://www.dostips.com/DtCodeBatchFiles.php#Batch_Progress
DOS IT HELP?