Subj : Re: Redirecting TEXT in Take Command To : Joe Caverly From : Charles Dye Date : Tue Jan 01 2002 04:52 pm From: raster@highfiber.com (Charles Dye) 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.) -- Charles Dye raster@highfiber.com --- BBBS/NT v4.01 Flag-2 * Origin: Mach2 Systems (1:342/3) .