I'll never forget the issue I had trying to use that command to set up Pithon as an environment variable and how it failed big time. Is that a really particular command? -----Original Message----- From: programmingblind-bounce@xxxxxxxxxxxxx [mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui Sent: Friday, July 15, 2011 10:16 AM To: programmingblind@xxxxxxxxxxxxx Cc: qubit Subject: Re: windows power shell At a Windows command prompt, one can get a list of the names and values of all environment variables via the "set" command. To redirect the output to a file, use syntax like set >temp.txt Jamal On 7/14/2011 10:36 PM, qubit wrote: > Greetings. > I am on windows 7 and am trying to run some batch commands, for which > I need to know what is the syntax to get at the value of an environment > variable? > I try %PATH%, %PATH, and even $PATH like in unix, but it all fails to > expand the value of the variable. > Since power shell apparently supports such unix-esque names as ls and > pwd, I am perplexed how to get it to pick up arguments. > > BTW: > echo $PATH > prints nothing, whereas the % signs just get passed through as if it > is not a special syntax, as in a dos window. > > So I suppose I'll get rid of power shell and use the dos window where > the args are predictable. > > Now in the time it took to type this I could have done that. Comments > welcome. > Thx. > --le > > __________ > View the list's information and change your settings at > //www.freelists.org/list/programmingblind > __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind