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











up vote
20
down vote

favorite
7












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? Please, help.










share|improve this question




























    up vote
    20
    down vote

    favorite
    7












    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? Please, help.










    share|improve this question


























      up vote
      20
      down vote

      favorite
      7









      up vote
      20
      down vote

      favorite
      7






      7





      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? Please, help.










      share|improve this question















      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? Please, help.







      c++ registry makefile path msys






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 25 at 1:01









      Ronan Boiteau

      5,71751735




      5,71751735










      asked Oct 24 '09 at 15:33









      d9k

      3521417




      3521417
























          3 Answers
          3






          active

          oldest

          votes

















          up vote
          32
          down vote



          accepted










          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.






          share|improve this answer























          • no effect, still Borlans's make.exe runs. I think it must be in registry, because >>There is no mention about Turbo Delphi in %path% variable
            – d9k
            Oct 24 '09 at 15:40










          • OK, when I tried "echo %path%" I saw Turbo Delphi's path in the middle of the long string. Thank you and sorry for inattention.
            – d9k
            Oct 24 '09 at 15:48






          • 3




            Windows 10 has a few ways of arriving there now, and includes a new GUI for managing entries so you don't need to remember that pesky semi-colon anymore: superuser.com/questions/949560/…
            – Mike Branski
            Nov 28 '15 at 5:11










          • Use the Windows command "where" to find out where make.exe lives. For example: "where make.exe" Gives this result on my computer: C:Program Files (x86)BorlandDelphi7Binmake.exe If I had make.exe in other paths, it would show those.
            – mxmoss
            Sep 18 at 15:45




















          up vote
          0
          down vote













          Why don't you create a bat file makedos.bat containing the following line?



          c:DOSmake.exe %1 %2 %5


          and put it in C:DOS (or C:Windowsè or make sure that it is in your %path%)



          You can run from cmd, SET and it displays all environment variables, including PATH.



          In registry you can find environment variables under:




          • HKEY_CURRENT_USEREnvironment

          • HKEY_CURRENT_USERVolatile Environment

          • HKEY_LOCAL_MACHINESYSTEMControlSet001ControlSession ManagerEnvironment






          share|improve this answer






























            up vote
            0
            down vote













            I had issues for a whilst not getting Terraform commands to run unless I was in the directory of the exe, even though I set the path correctly.



            For anyone else finding this issue, I fixed it by moving the environment variable higher than others!






            share|improve this answer





















              Your Answer






              StackExchange.ifUsing("editor", function () {
              StackExchange.using("externalEditor", function () {
              StackExchange.using("snippets", function () {
              StackExchange.snippets.init();
              });
              });
              }, "code-snippets");

              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "1"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f1618280%2fwhere-can-i-set-path-to-make-exe-on-windows%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              32
              down vote



              accepted










              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.






              share|improve this answer























              • no effect, still Borlans's make.exe runs. I think it must be in registry, because >>There is no mention about Turbo Delphi in %path% variable
                – d9k
                Oct 24 '09 at 15:40










              • OK, when I tried "echo %path%" I saw Turbo Delphi's path in the middle of the long string. Thank you and sorry for inattention.
                – d9k
                Oct 24 '09 at 15:48






              • 3




                Windows 10 has a few ways of arriving there now, and includes a new GUI for managing entries so you don't need to remember that pesky semi-colon anymore: superuser.com/questions/949560/…
                – Mike Branski
                Nov 28 '15 at 5:11










              • Use the Windows command "where" to find out where make.exe lives. For example: "where make.exe" Gives this result on my computer: C:Program Files (x86)BorlandDelphi7Binmake.exe If I had make.exe in other paths, it would show those.
                – mxmoss
                Sep 18 at 15:45

















              up vote
              32
              down vote



              accepted










              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.






              share|improve this answer























              • no effect, still Borlans's make.exe runs. I think it must be in registry, because >>There is no mention about Turbo Delphi in %path% variable
                – d9k
                Oct 24 '09 at 15:40










              • OK, when I tried "echo %path%" I saw Turbo Delphi's path in the middle of the long string. Thank you and sorry for inattention.
                – d9k
                Oct 24 '09 at 15:48






              • 3




                Windows 10 has a few ways of arriving there now, and includes a new GUI for managing entries so you don't need to remember that pesky semi-colon anymore: superuser.com/questions/949560/…
                – Mike Branski
                Nov 28 '15 at 5:11










              • Use the Windows command "where" to find out where make.exe lives. For example: "where make.exe" Gives this result on my computer: C:Program Files (x86)BorlandDelphi7Binmake.exe If I had make.exe in other paths, it would show those.
                – mxmoss
                Sep 18 at 15:45















              up vote
              32
              down vote



              accepted







              up vote
              32
              down vote



              accepted






              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.






              share|improve this answer














              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.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited Aug 17 at 20:24

























              answered Oct 24 '09 at 15:36









              Nathan Adams

              9611627




              9611627












              • no effect, still Borlans's make.exe runs. I think it must be in registry, because >>There is no mention about Turbo Delphi in %path% variable
                – d9k
                Oct 24 '09 at 15:40










              • OK, when I tried "echo %path%" I saw Turbo Delphi's path in the middle of the long string. Thank you and sorry for inattention.
                – d9k
                Oct 24 '09 at 15:48






              • 3




                Windows 10 has a few ways of arriving there now, and includes a new GUI for managing entries so you don't need to remember that pesky semi-colon anymore: superuser.com/questions/949560/…
                – Mike Branski
                Nov 28 '15 at 5:11










              • Use the Windows command "where" to find out where make.exe lives. For example: "where make.exe" Gives this result on my computer: C:Program Files (x86)BorlandDelphi7Binmake.exe If I had make.exe in other paths, it would show those.
                – mxmoss
                Sep 18 at 15:45




















              • no effect, still Borlans's make.exe runs. I think it must be in registry, because >>There is no mention about Turbo Delphi in %path% variable
                – d9k
                Oct 24 '09 at 15:40










              • OK, when I tried "echo %path%" I saw Turbo Delphi's path in the middle of the long string. Thank you and sorry for inattention.
                – d9k
                Oct 24 '09 at 15:48






              • 3




                Windows 10 has a few ways of arriving there now, and includes a new GUI for managing entries so you don't need to remember that pesky semi-colon anymore: superuser.com/questions/949560/…
                – Mike Branski
                Nov 28 '15 at 5:11










              • Use the Windows command "where" to find out where make.exe lives. For example: "where make.exe" Gives this result on my computer: C:Program Files (x86)BorlandDelphi7Binmake.exe If I had make.exe in other paths, it would show those.
                – mxmoss
                Sep 18 at 15:45


















              no effect, still Borlans's make.exe runs. I think it must be in registry, because >>There is no mention about Turbo Delphi in %path% variable
              – d9k
              Oct 24 '09 at 15:40




              no effect, still Borlans's make.exe runs. I think it must be in registry, because >>There is no mention about Turbo Delphi in %path% variable
              – d9k
              Oct 24 '09 at 15:40












              OK, when I tried "echo %path%" I saw Turbo Delphi's path in the middle of the long string. Thank you and sorry for inattention.
              – d9k
              Oct 24 '09 at 15:48




              OK, when I tried "echo %path%" I saw Turbo Delphi's path in the middle of the long string. Thank you and sorry for inattention.
              – d9k
              Oct 24 '09 at 15:48




              3




              3




              Windows 10 has a few ways of arriving there now, and includes a new GUI for managing entries so you don't need to remember that pesky semi-colon anymore: superuser.com/questions/949560/…
              – Mike Branski
              Nov 28 '15 at 5:11




              Windows 10 has a few ways of arriving there now, and includes a new GUI for managing entries so you don't need to remember that pesky semi-colon anymore: superuser.com/questions/949560/…
              – Mike Branski
              Nov 28 '15 at 5:11












              Use the Windows command "where" to find out where make.exe lives. For example: "where make.exe" Gives this result on my computer: C:Program Files (x86)BorlandDelphi7Binmake.exe If I had make.exe in other paths, it would show those.
              – mxmoss
              Sep 18 at 15:45






              Use the Windows command "where" to find out where make.exe lives. For example: "where make.exe" Gives this result on my computer: C:Program Files (x86)BorlandDelphi7Binmake.exe If I had make.exe in other paths, it would show those.
              – mxmoss
              Sep 18 at 15:45














              up vote
              0
              down vote













              Why don't you create a bat file makedos.bat containing the following line?



              c:DOSmake.exe %1 %2 %5


              and put it in C:DOS (or C:Windowsè or make sure that it is in your %path%)



              You can run from cmd, SET and it displays all environment variables, including PATH.



              In registry you can find environment variables under:




              • HKEY_CURRENT_USEREnvironment

              • HKEY_CURRENT_USERVolatile Environment

              • HKEY_LOCAL_MACHINESYSTEMControlSet001ControlSession ManagerEnvironment






              share|improve this answer



























                up vote
                0
                down vote













                Why don't you create a bat file makedos.bat containing the following line?



                c:DOSmake.exe %1 %2 %5


                and put it in C:DOS (or C:Windowsè or make sure that it is in your %path%)



                You can run from cmd, SET and it displays all environment variables, including PATH.



                In registry you can find environment variables under:




                • HKEY_CURRENT_USEREnvironment

                • HKEY_CURRENT_USERVolatile Environment

                • HKEY_LOCAL_MACHINESYSTEMControlSet001ControlSession ManagerEnvironment






                share|improve this answer

























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Why don't you create a bat file makedos.bat containing the following line?



                  c:DOSmake.exe %1 %2 %5


                  and put it in C:DOS (or C:Windowsè or make sure that it is in your %path%)



                  You can run from cmd, SET and it displays all environment variables, including PATH.



                  In registry you can find environment variables under:




                  • HKEY_CURRENT_USEREnvironment

                  • HKEY_CURRENT_USERVolatile Environment

                  • HKEY_LOCAL_MACHINESYSTEMControlSet001ControlSession ManagerEnvironment






                  share|improve this answer














                  Why don't you create a bat file makedos.bat containing the following line?



                  c:DOSmake.exe %1 %2 %5


                  and put it in C:DOS (or C:Windowsè or make sure that it is in your %path%)



                  You can run from cmd, SET and it displays all environment variables, including PATH.



                  In registry you can find environment variables under:




                  • HKEY_CURRENT_USEREnvironment

                  • HKEY_CURRENT_USERVolatile Environment

                  • HKEY_LOCAL_MACHINESYSTEMControlSet001ControlSession ManagerEnvironment







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited Mar 25 at 1:01









                  Ronan Boiteau

                  5,71751735




                  5,71751735










                  answered Oct 26 '09 at 21:25









                  Remus Rigo

                  81172854




                  81172854






















                      up vote
                      0
                      down vote













                      I had issues for a whilst not getting Terraform commands to run unless I was in the directory of the exe, even though I set the path correctly.



                      For anyone else finding this issue, I fixed it by moving the environment variable higher than others!






                      share|improve this answer

























                        up vote
                        0
                        down vote













                        I had issues for a whilst not getting Terraform commands to run unless I was in the directory of the exe, even though I set the path correctly.



                        For anyone else finding this issue, I fixed it by moving the environment variable higher than others!






                        share|improve this answer























                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I had issues for a whilst not getting Terraform commands to run unless I was in the directory of the exe, even though I set the path correctly.



                          For anyone else finding this issue, I fixed it by moving the environment variable higher than others!






                          share|improve this answer












                          I had issues for a whilst not getting Terraform commands to run unless I was in the directory of the exe, even though I set the path correctly.



                          For anyone else finding this issue, I fixed it by moving the environment variable higher than others!







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Aug 28 at 20:41









                          Alex Thomas

                          1




                          1






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Stack Overflow!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.





                              Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                              Please pay close attention to the following guidance:


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f1618280%2fwhere-can-i-set-path-to-make-exe-on-windows%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              What visual should I use to simply compare current year value vs last year in Power BI desktop

                              Alexandru Averescu

                              Trompette piccolo