You don't specify which shell you are using. I'm guessing
that it's either 4NT or Take Command.
Remember that these shells feature true pipes. The command
on the right side of the pipe (your SET command) is executed
by a separate shell. Your variable *is* being set, just not
in the same shell that handles the rest of your batch file....
If you know that the batch file will only be executed under
Windows, I'd suggest using the clipboard instead of a pipe. If
the batch needs to run in DOS mode as well (in 4DOS,) then a
temporary file would be a better choice.
Also, I would recommend that you not start your variable name
with an underscore; it looks too much like an internal variable
that way.
----------------------------------------
@echo off
setlocal
text > clip:
Line1 1111
Line2 2222
endtext
set getline=%@select[clip:,5,5,20,72, Select Line]
echo vars = %getline
echo vars = %getline%
if [%getline] == [] ( echo Select Cancelled %+ quit )
echo ==================
echo == %getline ==
echo == %getline% ==
echo ==================
----------------------------------------
--
Charles Dye ras...@highfiber.com