how to @SELECT redirected input?

May 31, 2008
382
2
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.
 
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
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.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
---- 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
 
Similar threads
Thread starter Title Forum Replies Date
R @select inside alias gives different (insanely small) window Support 7
Joe Caverly Windows Terminal and @SELECT Support 13
WinLanEm @SELECT problem Support 6
T @select and @selectarray issues Support 2
C How to? Select 100 random pictures from 30,000 Support 8
MikeBaas How to? SELECT: exclude files / display prompt Support 2
rps Documentation "Select" command switch order incorrect Support 4
mikea How to? @select[] window size, redux. Support 3
vefatica IDE double-click select? Support 29
gschizas How to? How can I use select with a folder that already contains parentheses? Support 7
T How to? Select and Delete text Support 6
mikea How to? Understanding @select[] Support 2
vhodro How to? Select text Support 10
WavSlave Fixed Escaping out of SELECT sometimes still executes the command Support 2
B Select and run lines from Command Input panel? Support 1
nikbackm Fixed v15: Issue with @select Support 3
G Fixed v15.00.27: @SELECT Support 10
D ini directives and @select example in Help Support 0
ehab aboudaya How to? Copy to clipboard on select Support 5
Phileosophos SELECT command opens additional tab Support 9
S SELECT DEL (*D.DLL) - output curious Support 8
vefatica Positioning @SELECT[] popup? Support 3
WadeHatler Any way to restore the Text Based "Select File" Windows in TCC Support 2
Joe Caverly Error when sorting list alphabetically for @select Support 2
S SELECT - does it support ranges? Support 2
nikbackm @select function and TAB characters Support 1
Joe Caverly @select like 4DOS Support 1
D Can you feed a file list to SELECT? Support 1
A @select versio 10.31 Support 1
nikbackm @select window problem Support 12
L How to? Character transfer among @BALLOC buffers, command tails, and possibly redirected standard streams Support 11
Charles Dye TYPE /P behaves strangely with piped/redirected input Support 0
J VIEW crash on redirected input and numbered bookmarks Support 6
A GNU ed won't accept redirected input Support 0
p.f.moore SDK - GetLine and redirected stdin Support 19
S INPUT fails if the entered text contains pair of square brackets Support 6
Joe Caverly Command Input Syntax Colouring Support 3
T Disable audible beep on input and inkey Support 2
T input accepts empty answer Support 5
WinLanEm INPUT problem Support 1
rps Command Input Window tab completion broken Support 7
D Documentation Using "send all input to other tabs" Support 11
J Input text converts to uppercase Support 1
T command input font Support 2
ehab aboudaya How to? Command Input history for each tab? Support 0
M How to? How do I read a Unicode file through standard-input? Support 4
Joe Caverly How to? Function Key With INPUT Support 5
E Saving out Command Input window Support 4
J Keyboard input error Support 6
vefatica TCMD tabs and input focus Support 11

Similar threads