Normally echo. is used when a single string&data line should print on display. But, some times a huge number of lines, like when echo. is called from inside a loop, clog display because of data warp on screen.
How to print on screen without echo. or avoiding the CR/LF at each line?
Cheers.
Search found 13 matches
- 11 Jun 2011 03:55
- Forum: DOS Batch Forum
- Topic: How to manage display data&strings
- Replies: 1
- Views: 3728
- 11 Jun 2011 03:50
- Forum: DOS Batch Forum
- Topic: Serial comm to cmd batch
- Replies: 0
- Views: 5424
Serial comm to cmd batch
I have one equipment sending status on rs-232, sent data is arranged for vt-100 terminal display. I need to peek fields data and process further, either using third-party or build-in batch. I need only rx (actually i neither know if communication is bidirectional). I use plink.exe to open the rx com...
- 30 May 2011 06:20
- Forum: DOS Batch Forum
- Topic: CNTR+C,Y,ENTER programmatically equivalent
- Replies: 4
- Views: 5229
Re: CNTR+C,Y,ENTER programmatically equivalent
Me too, , i am not in my mother language, beg pardon Actually: what if you have a repeating process that takes 20min to complete each run and you want to stop before it starts again with another instance? My guess:(1) use the set /p or combination of goto and set /p to quit the loop at next iteratio...
- 30 May 2011 05:50
- Forum: DOS Batch Forum
- Topic: Scanning file in blocks of lines
- Replies: 7
- Views: 12237
Re: Scanning file in blocks of lines
To amel27: so there is no special meaning for '$', or it has?
- 29 May 2011 23:40
- Forum: DOS Batch Forum
- Topic: CNTR+C,Y,ENTER programmatically equivalent
- Replies: 4
- Views: 5229
CNTR+C,Y,ENTER programmatically equivalent
hi to all, I would need to have a main slow repeating process inside a loop to make it running or stop it. The batch idea to use a set /p on top or bottom of the loop, waiting for a key to stop, is good but as process itself could last hours i do not know if keyboard cue is read during the steady u....
- 29 May 2011 23:28
- Forum: DOS Batch Forum
- Topic: Scanning file in blocks of lines
- Replies: 7
- Views: 12237
Re: Scanning file in blocks of lines
Thanks amel27, effectively i was watching code wandering how i miss something, i will try soon as it looks promising as it has a call to process instead of embedding it. As asked on the other topic on white spaces, here again i feel i have to learn how escapes works in dos/cmd batch. I.e, what's the...
- 29 May 2011 23:20
- Forum: DOS Batch Forum
- Topic: circumvent findstr white space eol
- Replies: 5
- Views: 10033
Re: circumvent findstr white space eol
Thanks to orange_batch for picking typo, of course it did not work the way i wrote; my testing was made on (literaly): for /f "delims=" %%j in ('dir /b /o:d ^| findstr /I "%ftype%"') do (set /a Litems+=1 & echo %%j>>!flist!) with just "delims=" missing. Now is fine,...
- 28 May 2011 23:36
- Forum: DOS Batch Forum
- Topic: circumvent findstr white space eol
- Replies: 5
- Views: 10033
circumvent findstr white space eol
Hi, in the following example for /f %%h in ('dir /b /o:d | findstr /i ".txt .doc .dat" ') do ("example=%%h" & echo !example!>>tmp) fails if filename has an inner white space, i.e, "Copy of blabla.txt" is redirected as "Copy". Otherwise, if the command part...
- 28 May 2011 23:16
- Forum: DOS Batch Forum
- Topic: Scanning file in blocks of lines
- Replies: 7
- Views: 12237
Scanning file in blocks of lines
Hi, i need to break down a long file in chunks of fixed items. I.e, if file test.txt have 906 lines, i need to have 23 blocks, 22 of 40 lines and 1 of 26 lines. Using: set /a count=0 del tmp for %%g in (test.txt) do ( echo %%g>>tmp set /a count+=1 if !count! equ 40 ( set /a block+=1 <job process wit...
- 25 May 2011 00:53
- Forum: DOS Batch Forum
- Topic: Menu question
- Replies: 3
- Views: 5094
Menu question
Probably already solved, how to set a default answer in menu? User should just hit enter to carry on (if he agree) or type what he wants, overriding the offered answer, and press enter.
Of course, no choice support...
Thanks
Of course, no choice support...
Thanks
- 21 May 2011 14:51
- Forum: DOS Batch Forum
- Topic: FOR IN DO and GOTO
- Replies: 5
- Views: 7349
Re: FOR IN DO and GOTO
Thank's dbenham
the question was put raw but you got the point.
Tebee
the question was put raw but you got the point.
Tebee
- 21 May 2011 14:34
- Forum: DOS Batch Forum
- Topic: set and white spaces
- Replies: 1
- Views: 3483
set and white spaces
Hi, i know white spaces are used as string delimiters, but how to avoid the last byte in environment variable equal to space? Ex.: ECHO ON & SETLOCAL EnableDelayedExpansion & SETLOCAL EnableExtensions FOR /F "delims= " %%G in ('DIR /S /B ^| FINDSTR ".ex1 .ex2 .ex3 .ex4"')...
- 21 May 2011 09:17
- Forum: DOS Batch Forum
- Topic: FOR IN DO and GOTO
- Replies: 5
- Views: 7349
FOR IN DO and GOTO
Hi, i am trying to scan daughter folders chasing for unique name.ext files and make some conversion on them (before doing more). Actually i am trying to embed some GOTO inside a FOR IN DO loop, using delayed expansion, but i get weird result: ECHO ON SETLOCAL EnableDelayedExpansion & SETLOCAL En...