Community
    • Login

    Open containing folder in cmd by the way of commands

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 789 Views 2 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.
    • ZhongPing ZhaoZ Offline
      ZhongPing Zhao
      last edited by

      How do I code in figure1’s window to open containing folder in cmd as shown in figure2?
      WINDOWS10
      npp.8.2.x64
      (figure1)
      275fdfaa-a36e-47f9-9863-529f6cc5eca7-20220502213115.jpg
      (figure2)
      450090e2-9872-467d-b88f-66131db2bf16-20220502213054.jpg

      Alan KilbornA PeterJonesP 2 Replies Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @ZhongPing Zhao
        last edited by

        @zhongping-zhao

        cmd /k cd /d $(CURRENT_DIRECTORY)

        ZhongPing ZhaoZ 1 Reply Last reply Reply Quote 1
        • PeterJonesP Offline
          PeterJones @ZhongPing Zhao
          last edited by

          @zhongping-zhao ,

          Further to what Alan posted, the online users manual lists the variables you can use in Notepad++'s Run dialog, which includes $(CURRENT_DIRECTORY) .

          That is the only part that is unique to Notepad++. Other than that, what Alan showed you was just standard cmd.exe syntax (as documented by microsoft).

          ZhongPing ZhaoZ 1 Reply Last reply Reply Quote 0
          • ZhongPing ZhaoZ Offline
            ZhongPing Zhao @Alan Kilborn
            last edited by

            @alan-kilborn
            Thanks a lot for your answer.

            1 Reply Last reply Reply Quote 0
            • ZhongPing ZhaoZ Offline
              ZhongPing Zhao @PeterJones
              last edited by

              @peterjones
              I checked the user manual and learned about the Notepad++'s specific environment variables, thank you for the reminder!

              1 Reply Last reply Reply Quote 1

              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