EPICS Home

Experimental Physics and Industrial Control System


 
2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: dllPath.bat problem
From: Andrew Johnson <[email protected]>
To: <[email protected]>, <[email protected]>
Date: Tue, 24 Jan 2017 11:44:20 -0600
Hi Freddie,

On 01/24/2017 11:02 AM, [email protected] 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  <20172018  2019  2020  2021  2022  2023  2024 
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  <20172018  2019  2020  2021  2022  2023  2024