Linked Questions
33 questions linked to/from Is there a command to refresh environment variables from the command prompt in Windows?
-1 votes
1 answer
1k views
Python and pip installation during setup via batch file [duplicate]
I'm currently setting up the installer for a tool I wrote, that utilizes another small python tool, which i need to install via pip. I do this by running a batch-file during the setup. (I use ...
0 votes
0 answers
57 views
SqlLocalDB not recognized after installation using powershell command [duplicate]
when I run these below commands one after another in a same powershell window , we are getting below error. And it is working when we run the second command in a new powershell window. step 1: MsiExec....
301 votes
6 answers
1.5m views
javac is not recognized as an internal or external command, operable program or batch file [closed]
I am experiencing an error while trying to compile Java programs. I am on Windows (this is a Windows-specific problem) and I have the latest JDK installed. I have attempted a solution involving the ...
194 votes
8 answers
104k views
How does the Windows Command Interpreter (CMD.EXE) parse scripts?
I ran into ss64.com which provides good help regarding how to write batch scripts that the Windows Command Interpreter will run. However, I have been unable to find a good explanation of the grammar ...
101 votes
15 answers
163k views
Variables within app.config/web.config
Is it is possible to do something like the following in the app.config or web.config files? <appSettings> <add key="MyBaseDir" value="C:\MyBase" /> <add key="Dir1" value="[MyBaseDir]\...
48 votes
9 answers
164k views
Switching between different JDK versions in Windows
I'm working on few projects and some of them are using different JDK. Switching between JDK versions is not comfortable. So I was wondering if there is any easy way to change it? I found 2 ways, ...
47 votes
5 answers
57k views
Is it possible to embed and execute VBScript within a batch file without using a temporary file?
People have been embedding and executing VBScript within batch files for a long time. But all the published solutions that I have seen (at the time this question was originally posed) involve writing ...
30 votes
3 answers
100k views
Node not recognized although successfully installed
I try to run nodejs on a brand new installation of Windows 7. This is what I've done: Install node using the windows installer Make sure the files were extracted to C:\Program Files (x86)\nodejs\ Make ...
21 votes
3 answers
8k views
conemu and console2 emulators not getting new path variable
I thought maybe it was a system issue but recently did a fresh install (win7 64bit) and a clean install of conemu (had same problem with both conemu and console2 on old win32 system). Also everything ...
13 votes
5 answers
50k views
How to set environment variables in vbs that can be read in calling batch script
I have a batch file that calls a vbscript file. I am trying to have the vbscript file change an environment variable that is later used in the batch file that calls the vbscript file. Here are ...
7 votes
4 answers
38k views
How can I refresh the PATH environment variable in a Batch script
I have a batch file "file.bat" that will call an installer with the following command: msiexec.exe /i "%~dp0\installer.msi" The installer will install a program and update the Path variable. While ...
7 votes
1 answer
10k views
How to read out *new* OS environment variables in Python?
Reading out OS environment variables in Python is a piece of cake. Try out the following three code lines to read out the 'PATH' variable in Windows: ################# # PYTHON 3.5 # ##...
6 votes
3 answers
4k views
TFS Build cannot find Grunt
I have installed npm and grunt on our TFS build server. I installed the grunt-cli using npm install -g grunt-cli and was then able to run grunt deploy from the command line when logged in as myself. ...
8 votes
2 answers
10k views
Passing System Env variable into Jenkins Slave
This is starting to drive me crazy .. but it seems like I am out of luck to figure it out by myself :/ I need to set up a mechanism to share string value between two slaves, for example, named slave ...
3 votes
1 answer
7k views
Setting environment variables in a shell script for a React app
I am trying to set some environment variables in a powershell (and bash) script and read them in a ReactJS application. The shell script is simple: $env:AUTHDOMAIN="some.domain.com" $env:AUTHCLIENTID=...