Environment Variable - Spaces This topic contains 0 replies, has 1 voice, and was last updated by Forums Archives 5 years, 3 months ago. Author Posts January 1, 2012 at 12:00 am #5468 Forums ArchivesMember by lasty12 at 2013-01-24 03:22:15 Hi All One of the programs we install requires environment variables created manually. [code2=powershell]setx PATH "$env:path; c:\variables\example\bin" -msetx example "$env:example c:\variables\example" -msetx arb "$env:wsenvfile c:\arb\arb.txt" -m[/code2] I have managed the above with the following, but am getting spaces before the "C:\..." e.g. "_c:\" Can anyone suggest how to get rid of the space? Thanks in advance by Infradeploy at 2013-01-24 05:02:49 environment is a psdrive in powershell where you can add and modify items:http://technet.microsoft.com/en-us/libr ... 30964.aspx Author Posts You must be logged in to reply to this topic.