From: Phil Robyn <pro...@uclink.berkzipeley.edu>
Date: Sun, 17 Feb 2002 13:43:46 -0800
Local: Sun, Feb 17 2002 4:43 pm
Subject: Re: ECHO without terminating CRLF - was "Re: com1 input"
Al Dunbar wrote:Great tip, Al! You can also use it to write the 'pesky' characters to a file
> "Clay Calvert" <ccalv...@Wanguru.com> wrote in message
> > This is an excellent technique. I definitely hadn't seen it before.
> Gasp! Al Dunbar finally comes up with something new! Will wonders never
> > Thanks
> You're welcome. Enjoy.
(< > | ^ &) if you use double quotes:
<nul (set /p z="<this>|<is>|<only>|<a>|<TEST>")>out.txt
> > On Fri, 15 Feb 2002 22:05:18 -0700, "Al Dunbar"
> > >"john miller" <j...@millertransportation.com> wrote in message
> > >> echo "command" > COM1
> > >> How can I recieve the answer or result that the device is
> > >In testing my previous reply to the above, I ran across a way to simulate
> > >The command "echo.hello world" emits the string "hello world" followed by
> > > - 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
> > >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
> > > <nul (set/p z=hello) >out.txt
> > >The dir command should indicate the file size as 12 bytes: "hello
> > >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
> > Clay Calvert
u n z i p m y a d d r e s s t o s e n d e - m a i l
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.