how to @SELECT redirected input?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 31, 2008
382
2
#1
Does %@SELECT work with redirected input? According to the help file it should, but I can't get it to display the selection window. I tried

alias | %@select[CON:,0,0,24,70,exec alias,1]
echo %@select[CON:,0,0,24,70,echo] < updater.ini

also replacing CON: with "CON" "@CON" upper and lowercase didn't work.
What am I missing?

echo %@select[updater.ini,0,0,24,70,echo] does work on my system.
 
#2
Hallo Stefano Piccardi,


> Does %@SELECT work with redirected input? According to the help
> file it should, but I can't get it to display the selection window.
> I tried
>
> alias | %@select[CON:,0,0,24,70,exec alias,1]
> echo %@select[CON:,0,0,24,70,echo] < updater.ini

Don't know what you want to do. Something like this works:

text | set dummy=%@select[con,5,5,20,15,Drive]
A:\
B:\
C:\
D:\
E:\
F:\
E:\
endtext

Best regards,

* Klaus Meinhard *
<www.4dos.info>
 
May 31, 2008
382
2
#3
Thank you, it works here too. "con" vs. "con:" makes the difference. It could be considered as a bug since the help file says:
To select from lines passed through input redirection or a pipe, use CON: as filename. To select from lines in the Windows clipboard, use CLIP: as filename.
Topic "f_select.htm" last edited 1/14/2009. ©2011 JP Software, Inc.
Keywords: @SELECT,SELECT

and CON works while CON: doesn't
while CLIP doesn't work while CLIP: does.
 
#4
---- Original Message ----
From: Stefano Piccardi
| Thank you, it works here too. "con" vs. "con:" makes the difference.
| It could be considered as a bug since the help file says:
| To select from lines passed through input redirection or a pipe, use
| CON: as filename. To select from lines in the Windows clipboard, use
| CLIP: as filename.
| Topic "f_select.htm" last edited 1/14/2009. �2011 JP Software, Inc.
| Keywords: @SELECT,SELECT
|
| and CON works while CON: doesn't
| while CLIP doesn't work while CLIP: does.

... and in most contexts the ":" after CON is not required, e.g.:

command | for %x in (@CON) ...

--
Steve