USBMONITOR command

#1
I have just resumed using this command, and discovered that the command it
executes when a monitored event occurs does not inherit the UnicodeOutput=No
setting. How do I force an ECHO command to append ASCII, not Unicode, to an
existing ASCII log, short of executing "option //UnicodeOutput=no" by the
command on each event?

Another issue: the batch file my command calls executes a single MSGBOX
command, but two consecutive messageboxes pop up, the second after the first
is closed.

Lastly: HELP for each of the "monitor" commands states that they each create
"environment variables", but aren't the variables created actually "internal
variables"?
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
10,588
97
#2
> I have just resumed using this command, and discovered that the command
> it executes when a monitored event occurs does not inherit the
> UnicodeOutput=No setting. How do I force an ECHO command to append ASCII,
> not Unicode, to an existing ASCII log, short of executing "option
> //UnicodeOutput=no" by the command on each event?
The monitoring commands have nothing to do with Unicode output; that's set
either at startup time or interactively with UnicodeOutput. ECHO doesn't
have any idea whether it's outputting ASCII or Unicode; it just passes the
STDOUT to the generic output routine, which tests for redirection and then
for UnicodeOutput.

Please post a minimal batch file here that shows the problem you're seeing.


> Another issue: the batch file my command calls executes a single MSGBOX
> command, but two consecutive messageboxes pop up, the second after the
> first is closed.
Not reproducible here -- I'd have to see your batch file.


> Lastly: HELP for each of the "monitor" commands states that they each
> create "environment variables", but aren't the variables created
> actually "internal variables"?
No, they're environment variables. (Though with the leading _ they look
superficially like internal variables.)

Rex Conn
JP Software