Community
    • Login

    How did developers set environment variables??

    Scheduled Pinned Locked Moved General Discussion
    4 Posts 2 Posters 2.2k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Кирилл ФроловК Offline
      Кирилл Фролов
      last edited by

      Why when i run notepad++ from win+r menu it opens, but when i try to run notepad++ from command line “not recognized as an internal or external command, operable program or batch file” is displayed?

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @Кирилл Фролов
        last edited by

        @Кирилл-Фролов

        Do some reading about Windows’ PATH environment variable…

        Кирилл ФроловК 1 Reply Last reply Reply Quote 0
        • Кирилл ФроловК Offline
          Кирилл Фролов @Alan Kilborn
          last edited by Кирилл Фролов

          @Alan-Kilborn I can’t find anything in my PATH variable that contains notepad word.
          Why when i run notepad++ from win+r menu it opens, but not when run from command line.

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA Offline
            Alan Kilborn @Кирилл Фролов
            last edited by PeterJones

            @Кирилл-Фролов said in How did developers set environment variables??:

            Why when i run notepad++ from win+r menu it opens, but not when run from command line

            Because they use 2 different mechanisms for locating the program.

            I can’t find anything in my PATH variable that contains notepad

            Which explains why it can’t be found when running from the command line.

            Add the folder of notepad++.exe to the PATH environment variable, or specify the complete path to notepad++.exe on the command line.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors