Skip to main content

Questions tagged [environment-variables]

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 scripts (they just have to update the environment variable).

338 questions with no upvoted or accepted answers
5 votes
0 answers
365 views

Apache2 SetEnv For Multiple VirtualHosts

I am looking to use a single declaration of a SetEnv var in my apache2.conf file & have that variable used by all the virtualhosts I currently have virtualhost-specific vars set up, but would ...
Richard Peck's user avatar
5 votes
0 answers
5k views

Is there a way to expand environment variables in *.ini files?

I have to work with an ini file, but I need a value set in the file to be based on an environment variable. For example, ... [program] dir=%SystemDrive%\SomeFolder\ ... In this case, ...
Jonathan DeCarlo's user avatar
5 votes
1 answer
1k views

Does the order of the directories listed in the Windows PATH variable affect system performance in any meaningful way?

I've noticed that when programs add their directory to the PATH environmental variable, most append it to the end but a few add it at the beginning, before the windows directory. So it made me wonder, ...
ivanatpr's user avatar
  • 898
4 votes
2 answers
994 views

PATHEXT environment variable not working

I want to use gcc on Windows, so someone gave me a MinGW folder. I put the D:\software\MinGW\bin\ folder in my PATH. But when I open a new CMD and type gcc, I get 'gcc' is not recognized as an ...
JacopoStanchi's user avatar
4 votes
0 answers
1k views

Would a longer PATH environment variable slow down a system?

In Windows 7, will a long system PATH environment variable slow down the system in any noticeable/tangible way? My system PATH variable is 45-entries deep. I have an i7 930 @ 4.2GHz, but out of ...
Coldblackice's user avatar
  • 5,974
4 votes
1 answer
987 views

How can I modify my KDE environment without restarting?

I am running KDE 4.10. I have added an environment variable to my .profile, however this variable will obviously not be visible to programs that I start via the KDE GUI (as opposed to a shell with the ...
Raman's user avatar
  • 393
3 votes
1 answer
5k views

Maven CLI does not recognize JAVA_HOME as correctly configured

This is the output even though it correctly points to the JDK C:\Users\{usr}>mvn -version The JAVA_HOME environment variable is not defined correctly This environment variable is needed to run ...
SwiftBlade95's user avatar
3 votes
0 answers
7k views

Conda gcc/g++ did not replace system (linux) gcc

I'm using a Linux system (in which I don't have sudo access) which already had gcc installed. I have to run some software, which requires stuff like cmake, bison and flex, and I installed them with ...
Kelthar's user avatar
  • 33
3 votes
0 answers
2k views

How can I set a dynamically evaluated environment variable for Windows' Command Processor (cmd.exe)?

The Windows command processor (cmd.exe) supports environment variables like USERNAME and USEPROFILE. The value of these variable is always the same after they have been set. But if I execute echo %...
Michiel van Oosterhout's user avatar
3 votes
1 answer
4k views

How to change environment variable to running process in windows?

I'm try to set new environment variables to too any new child-process in Windows platforms. For example. I'm using sublime, and I run build command from sublime. (the build command may be a BAT file)...
Aminadav Glickshtein's user avatar
3 votes
0 answers
378 views

Shortening Path variable

Currently, my PATH variable is way too long. It seems to have been populated by different programs upon installation. I have pasted my PATH variable below. Could you please tell me if it is safe to ...
Connor's user avatar
  • 31
3 votes
0 answers
1k views

user path not merged with system path

On my Windows 7 machine, for some reason the user path is not merged with the system path variable when I start a new command prompt. I have seen other related questions answered by a reference to a ...
Nate Glenn's user avatar
3 votes
1 answer
442 views

Stop Windows %tmp% environment variable using short file name

I have a C++ application that is using the %tmp% variable (from the GetTempPath() function). Unfortunately there is a bug where it can't handle the tidle that may appear in the user's local temp ...
Raiden616's user avatar
  • 131
3 votes
2 answers
8k views

View process environment variables in Windows

Is there a way to view the environment variables of a specific process. I know that i can see them using the Process Explorer. However, i need to use them in a batch or powershell script. Is there a ...
jan-seins's user avatar
  • 131
3 votes
1 answer
7k views

APPDATA and LOCALAPPDATA environment variables are not set on a profile in Windows 7 Pro 32bit

I am having problem with a user account on a Windows 7 machine (local install, admin user account) APPDATA and LOCALAPPDATA environment are not set. Another user on the same machine, (also a local ...
Timur Fanshteyn's user avatar

15 30 50 per page
1
2 3 4 5
23