Newsgroups: microsoft.public.win2000.cmdprompt.admin
From: "Al Dunbar" <LuigiDun...@hotmail.com>
Date: Fri, 15 Feb 2002 22:05:18 -0700
Local: Sat, Feb 16 2002 12:05 am
Subject: ECHO without terminating CRLF - was "Re: com1 input"
news:43ea01c1b558$aa1d7010$19ef2ecf@tkmsftngxa01...
> I have a device attached to COM1 which sends/recieves In testing my previous reply to the above, I ran across a way to simulate an > data. I have been able to send data using this: > echo "command" > COM1 > How can I recieve the answer or result that the device is ECHO without a terminating CRLF sequence using batch-only facilities. No doubt others are aware of this, however, I have not seen it since I have been following this newsgroup, so will post it here for the benefit of any others who, like myself, did not know. The command "echo.hello world" emits the string "hello world" followed by a - displaying a minimalist progress bar. The command that does this is: <nul (set/p anyvariable=string to emit) The "<nul" pipes a nul response to the set/p command, which will cause the Here is an example where this is used for a rudimentary progress bar: @echo off And here is an example where info is written to a single line in a file from <nul (set/p z=hello) >out.txt The dir command should indicate the file size as 12 bytes: "hello world!". The strings output need not be literal, and can originate from any source <nul (set/p z=sec min hours: %time:~6,2% %time:~3,2% %time:~0,2%) /Al You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||