‘git’ is not recognized as an internal or external command

I have an installation of Git for Windows, but when I try to use the git command in Command Prompt, I get the following error: ‘git’ is not recognized as an internal or external command, operable program or batch file. How do I fix this problem? 20 s 20 Have you correctly set your PATH … Read more

Is there a command to refresh environment variables from the command prompt in Windows?

If I modify or add an environment variable I have to restart the command prompt. Is there a command I could execute that would do this without restarting CMD? 26 s 26 On Windows 7/8/10, you can install Chocolatey, which has a script for this built-in. After installing Chocolatey, just type refreshenv.

Adding a directory to the PATH environment variable in Windows

I am trying to add C:\xampp\php to my system PATH environment variable in Windows. I have already added it using the Environment Variables dialog box. But when I type into my console: C:\>path it doesn’t show the new C:\xampp\php directory: PATH=D:\Program Files\Autodesk\Maya2008\bin;C:\Ruby192\bin;C:\WINDOWS\system32;C:\WINDOWS; C:\WINDOWS\System32\Wbem;C:\PROGRA~1\DISKEE~2\DISKEE~1\;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\QuickTime\QTSystem\;D:\Program Files\TortoiseSVN\bin ;D:\Program Files\Bazaar;C:\Program Files\Android\android-sdk\tools;D:\Program Files\ Microsoft Visual Studio\Common\Tools\WinNT;D:\Program … Read more

Set environment variables from file of key/value pairs

TL;DR: How do I export a set of key/value pairs from a text file into the shell environment? For the record, below is the original version of the question, with examples. I’m writing a script in bash which parses files with 3 variables in a certain folder, this is one of them: MINIENTREGA_FECHALIMITE=”2011-03-31″ MINIENTREGA_FICHEROS=”informe.txt programa.c” … Read more

List all environment variables from the command line

Is it possible to list all environment variables from a Windows’ command prompt? Something equivalent to PowerShell’s gci env: (or ls env: or dir env:). 9 s 9 Just do: SET You can also do SET prefix to see all variables with names starting with prefix. For example, if you want to read only derbydb … Read more