Environment variables are system-wide variables which share the same value. These variables are often parsed by the shell when executing commands, and are expanded into their appropriate variable. For example, this allows users to move file locations without needing to update hard-coded paths in ...

learn more… | top users | synonyms

3
votes
1answer
183 views

Powershell systemroot in $env:path different when AC elevated

I have a strange behavior with the environment variables at my Windows XP SP3. When I logon as Administrator, the %SystemRoot% strings in PATH are substituted to C:\WINDOWS, the value of the variable ...
3
votes
1answer
325 views

How to shorten the no of characters display for the current directory in the prompt

I am using bash, and in my .basrhrc: I have the following which defined how my prompt looks: PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\w\[\033[00m\]:\[\033[01;34m\]\!:\#\[\033[00m\]\$ ' ...
2
votes
2answers
1k views

Escaping %’s in file-/folder-names at the command-line

Does anybody of a way to access files and directories that have a % in their name (which is valid) from the command-line? Specifically, if there are two %’s and the text between them happens to ...
2
votes
1answer
444 views

Prevent Windows System %PATH% from being prepended to user %PATH?

I know how to set system or user specific environment variables: Now, the problem is that the PATH variable is treated such that the value you enter for the user PATH will be automatically appended ...
2
votes
2answers
487 views

Windows XP Environment Variables

I think my PATH in my environment variables is not working properly and would like to ask a few questions about environment variables in general. What is the difference between User variables and ...
2
votes
3answers
678 views

How can I determine whether a Windows XP cmd variable ends with a given string?

I want to check on whether the last character(s) of an environment variable are \ or .exe. How can I do this in Windows XP SP3?
2
votes
1answer
5k views

Windows Server 2008 R2 Environment Variables

How do you set environment variables on Windows Server 2008 R2, specifically the PATH variable? The Microsoft Help source provides advice that doesn't match the screens and options I see on my server. ...
1
vote
1answer
357 views

Set environment Path Windows 7

Trying to add stuff to the system environment Path via batch, vbs or anything really. This used to work in a .bat, but has stopped: setx -m path "C:\addtopath;%PATH%" This used to work in VBS, ...
1
vote
0answers
233 views

My path keeps getting truncated and I have to restart explorer.exe to fix it

I have a mysterious problem on my machine. Periodically I find that my path on Windows 7 machine gets set to ...
1
vote
1answer
993 views

Basic *nix Question (Mac OS X): Where is my path being set?

I have a path that starts like this PATH=/opt/subversion:/usr/bin:/bin:/usr/sbin:/sbin [etc] and this is wrong (at least opt/subversion needs to be opt/subversion/bin). Where is this being set? I ...
0
votes
2answers
98 views

Reclaim home directory

The home directory is where a user is supposed to keep their personal files, for example documents and music. On my computer this is C:\Users\Steven also known as the %userprofile% variable. The ...
0
votes
3answers
3k views

where.exe does not find OpenSSL libs when %ProgramFiles% variable is used in the PATH environment variable

I installed both 32bit and 64bit version of OpenSSL libs on Vista x64. The 32bit version was installed in c:\Program Files (x86)\OpenSSL and the 64bit version was installed in c:\Program ...