Linked Questions
16 questions linked to/from Set a persistent environment variable from cmd.exe
0 votes
1 answer
79 views
One time setting of value in Set /p [duplicate]
I have created a batch file that copies pdf files in different server. The file name of the folder destination of files in desktop must be like this '2 Backup (name of user)'. So, I want the user ...
339 votes
41 answers
142k views
git push hangs after Total line
My git push is hanging after appearing to complete the push. I am going git push Counting objects: 51, done. Delta compression using up to 2 threads. Compressing objects: 100% (47/47), done. Writing ...
273 votes
12 answers
536k views
Command line to remove an environment variable from the OS-level configuration
Windows has the setx command: Description: Creates or modifies environment variables in the user or system environment. So you can set a variable like this: setx FOOBAR 1 And you can clear ...
12 votes
1 answer
39k views
How to set system environment variable in C#?
I'm trying to set a system environment variable in my application, but get an SecurityException. I tested everything I found in google - without success. Here is my code (note, that I'm administrator ...
5 votes
1 answer
39k views
raise KeyError(key) from None
I am getting an error message and have no idea how to proceed, the error message is displayed below. I have downloaded all necessary tools for it to run however it seems to be having a problem with ...
3 votes
3 answers
3k views
using rundll32 user32.dll to indicate that a user's environment has changed
I do not have the ability to modify environment variables in windows 7. However I have been granted permission to modify the registry settings. So for example I can modify: HKEY_LOCAL_MACHINE\SYSTEM\...
1 vote
1 answer
10k views
Using CMD SET command is not saving
Ahead of time I am a newb at programming/scripting. I mainly research what I want and just edit it to fit my needs when possible. Environment: Windows 7 CMD Usergroup = admin Occurs when launching as ...
1 vote
1 answer
3k views
How can I change an environment variable and have other apps see the value without logging out?
I use Delphi 10 Seattle on a Windows7 64bit machine. Here is the problem: In order to create a test environment for my software, I created a little application that adds environment variables into ...
2 votes
1 answer
4k views
How stop RStudio from creating empty "R" folder within "/home" directory at every startup
After having set the path for the default working directory as well as my first (and only) project within RStudio options I wonder why RStudio keeps creating an empty folder named "R" within ...
1 vote
2 answers
2k views
How to set windows environment variable In tcl script
I am working on a Tcl script in which I have a variable and I just want to keep its value alive after the completion of its execution, so I am trying to define a windows environment variable by ...
1 vote
1 answer
1k views
How can I save variables longterm in Batch?
I've seen it done before on someone else's Batch program, so I'm sure it's possible. Every time I launch my program I run a series of lines of code such as: set/a num=0 set/a tog=1 set/a ran=%...
0 votes
1 answer
859 views
How do i apply changes made to path variable after changing it?
In my .bat file, I used the code: setx /m path "%PATH%;%~dp0" %~dp0 to add the current directory of the .bat file to the system path. But I can't use the cmd to run phantomjs.exe (in the same ...
2 votes
0 answers
552 views
Set general environment variables for Visual Studio
I have a corporate computer where I am not able to alter some essential global environment variables like HOMEDRIVE, HOMEPATH and HOMESHARE due to group policies. I am using a couple of tools ...
1 vote
2 answers
45 views
Setting environment changes?
I would like to ask you if it's normal that my "Setting environment" changes after each system reboot or even if I just close my cmd console. for example, I'm using python 3.5, when I wan to use ...