Arachne at FreeLists---The Arachne Fan Club!
Hi Greg,
if I create in environ. path1 and path2
and path3 with the set command then I can:
path=%path1%;%path2%;%path3%
and all those paths are now shown in the environ.
variable "PATH".
and any batch file in the new path is searched for
and run from from any drive and/or directory.
I am testing with MSDOS version 7
Eric
See inserted comments below:
On Mon, 27 Nov 2006 10:11:34 +1030 "Greg Mayman" <gmone@xxxxxxxxxx>
writes:
> Arachne at FreeLists---The Arachne Fan Club!
>
> On Sat, 25 Nov 2006 05:56:05 -0500, Eric S. Emerson wrote:
>
> > By using %path1%;%path2%;...... you can
> > make it longer.
>
> That's what I thought, but it doesn't work that way in MS-DOS 6.22.
>
Sorry, I don't understand what you are saying here:
----------------------------
> When I tried it in a batch file, I found that the values of path1
> and path2 were substituted and it wass executed as if it was
> written in full.
------------------------------
>
> Try it yourself with this batch file that doubles the length of
> the path statement:
>
> set old=%path%
> path %path%;%path%
> path %old%
>
> Note that echo is left on so you can see how the commands are
> executed.
>
Sorry, I don't get any truncation........
> If you want to see the truncation, try this batch file:
>
> set old=%path%
I would use: path=%path1%;%path2%
Why would I want to add the existing path to the existing path
as you show below?
> path %path%;%path%
> path
> pause
>
> then repeat the last three lines at least four times, and finish
> with
> path %old%
> to restore the original path.
>
> . ,-./\
> . / \ from Greg Mayman, in Adelaide, South Australia
> . \_,-*_/ "Queen City of The South" 34:55 S 138:36 E
> . v
> Arachne at FreeLists
> -- Arachne, The Premier GPL Web Browser/Suite for DOS --
>
>
Arachne at FreeLists
-- Arachne, The Premier GPL Web Browser/Suite for DOS --