Subj : Re: Redirecting TEXT in Take Command To : Charles Dye From : Joe Caverly Date : Tue Jan 01 2002 11:06 pm From: jlcaverlyca@yahoo.ca (Joe Caverly) Hi; The clip: didn't work, but the foo.txt worked in my version of Take Command. Thanks for your assistance. Joe raster@highfiber.com (Charles Dye) wrote in message news:<3c32587e.7137616@news1.nmia.com>... > On 1 Jan 2002 15:38:53 -0800, jlcaverlyca@yahoo.ca (Joe Caverly) > wrote: > > >Hi, > > I'm using; > > > >Take Command/32 2.02B Windows 95 4.00 > >Take Command/32 Revision B (131) Windows 95 Build 1111 B > > > >I have the following batch file; > > > >TEXT | set _option = %@SELECT[con,1,1,25,80,"Test of Text"] > >Option 1 > >Option 2 > >Option 3 > >ENDTEXT > > > >According to the Take Command help file, I should be able to re-direct > >the output of the TEXT command, which this batch file does. However, > >it opens a new instance of Take Command to do so. Thus, the _option > >environment variable is not returned in the environment from which the > >batch file is launched. > > > >Is there a method which will allow me to set the _option environment > >variable, and to NOT launch a new instance of Take Command? > > @echo off > TEXT > foo.txt > Option 1 > Option 2 > Option 3 > ENDTEXT > set _option=%@SELECT[foo.txt,1,1,25,80,"Test of Text"] > del /q foo.txt > > - - - > > @echo off > TEXT > clip: > Option 1 > Option 2 > Option 3 > ENDTEXT > set _option=%@SELECT[clip:,1,1,25,80,"Test of Text"] > > (Both tested under TC32 3.01, not 2.xx, sorry.) --- BBBS/NT v4.01 Flag-2 * Origin: Mach2 Systems (1:342/3) .