Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: dllPath.bat problem
From: Andrew Johnson <anj@aps.anl.gov>
To: <freddie.akeroyd@stfc.ac.uk>, <core-talk@aps.anl.gov>
Date: Tue, 24 Jan 2017 11:44:20 -0600
Hi Freddie,

On 01/24/2017 11:02 AM, freddie.akeroyd@stfc.ac.uk wrote:
>     set "PATH=A & B;C"
>     PATH C;%PATH%
> 
> Prints
>      'B' is not recognized as an internal or external command,
>      operable program or batch file.
> and PATH is left containing just C;A
> 
> The solution is to quote the entire expression using the syntax
>       SET  "PATH=epicsdir1;epicsdir2;%PATH%"
> in dllPath.bat

Presumably
    PATH "epicsdir1;epicsdir2;%PATH%"
will also work (seems to be OK for me), i.e. I just need to add quotes
around the whole generated argument.

I prefer using the slightly shorter PATH command, which also makes it
easier for a human to see at first glance that it's adjusting the PATH
instead of setting some other variable whose name just begins with PATH.

Done — thanks,

- Andrew

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

Replies:
RE: dllPath.bat problem freddie.akeroyd
References:
dllPath.bat problem Mark Rivers
Re: dllPath.bat problem Andrew Johnson
RE: dllPath.bat problem Mark Rivers
Re: dllPath.bat problem Andrew Johnson
RE: dllPath.bat problem freddie.akeroyd

Navigate by Date:
Prev: RE: dllPath.bat problem freddie.akeroyd
Next: RE: dllPath.bat problem freddie.akeroyd
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: RE: dllPath.bat problem freddie.akeroyd
Next: RE: dllPath.bat problem freddie.akeroyd
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 24 Jan 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·