Subj : Re: changing the prompt to show only a few directories To : Charles Dye From : Stan Brown Date : Thu Feb 07 2002 09:19 pm From: Stan.Brown@f3.n342.z1.cereal.mv.com (Stan Brown) Subject: Re: changing the prompt to show only a few directories From: brahms@mindspring.com (Stan Brown) Charles Dye wrote in comp.os.msdos.4dos: >brahms@mindspring.com (Stan Brown) wrote: > >>Interesting -- I never realized you could execute functions in the >>prompt. But if I'm reading the 4DOS help correctly, the single % in >>the above should all be double %% when this is in a batch file, and >>the double %% shown should be only a single % when not in a batch >>file. > >In constructions such as internal variables and variable functions, it >should always be a single percent sign; double percent signs will not >work correctly. For environment variables and FOR-loop indices, you >can use either single or double percent signs, whether you're in a >batch file or at the prompt. > >My suggestion would be to always using single percent signs for >clarity, unless compatibility with legacy shells is an issue. Well, the help ("HELP PROMPT") specifically says to use a double percent sign in a batch file. -- Stan Brown, Oak Road Systems, Cortland County, New York, USA http://oakroadsystems.com My reply address is correct as is. The courtesy of providing a correct reply address is more important to me than time spent deleting spam. -- |Fidonet: Stan Brown 1:342/3 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .