Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I set path to make.exe on Windows?

When I try run make from cmd-console on Windows, it runs Turbo Delphi's make.exe but I need MSYS's make.exe. There is no mention about Turbo Delphi in %path% variable, maybe I can change it to MSYS in registry?

like image 325
d9k Avatar asked Oct 24 '09 15:10

d9k


People also ask

What is exe path?

The . exepath command sets or displays the executable file search path.

How do I create a path in Windows?

To add a path to the PATH environment variableIn the System dialog box, click Advanced system settings. On the Advanced tab of the System Properties dialog box, click Environment Variables. In the System Variables box of the Environment Variables dialog box, scroll to Path and select it.

Where is the EXE directory?

Right-click the “Start” menu shortcut for the application, and select More > Open file location. This will open a File Explorer window that points to the actual application shortcut file. Right click on that shortcut, and select “Properties.” No matter how you located the shortcut, a properties window will appear.


2 Answers

The path is in the registry but usually you edit through this interface:

  1. Go to Control Panel -> System -> System settings -> Environment Variables.
  2. Scroll down in system variables until you find PATH.
  3. Click edit and change accordingly.
  4. BE SURE to include a semicolon at the end of the previous as that is the delimiter, i.e. c:\path;c:\path2
  5. Launch a new console for the settings to take effect.
like image 112
Natalie Adams Avatar answered Oct 06 '22 18:10

Natalie Adams


Here I'm providing solution to setup Terraform environment variable in windows for beginners.

  1. Download the terraform ZIP file from Terraform site.
  2. Extract the .exe from the ZIP file to a folder eg C:\Apps\Terraform copy this path location like C:\Apps\terraform\
  3. Add the folder location to your PATH variable, eg: Control Panel -> System -> System settings -> Environment Variables

In System Variables, select Path > edit > new > Enter the location of the Terraform .exe, eg C:\Apps\Terraform then click OK

enter image description here

  1. Open a new CMD/PowerShell and the Terraform command should work
like image 40
24x7Cloud Services Avatar answered Oct 06 '22 19:10

24x7Cloud Services