Community
    • Login

    Open containing folder in cmd by the way of commands

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 3 Posters 345 Views
    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
      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
        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
          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
            ZhongPing Zhao @Alan Kilborn
            last edited by

            @alan-kilborn
            Thanks a lot for your answer.

            1 Reply Last reply Reply Quote 0
            • ZhongPing ZhaoZ
              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
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors