• Login
Community
  • Login

Open containing folder in cmd by the way of commands

Scheduled Pinned Locked Moved General Discussion
5 Posts 3 Posters 356 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.
  • Z
    ZhongPing Zhao
    last edited by May 2, 2022, 1:59 PM

    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

    A P 2 Replies Last reply May 2, 2022, 2:09 PM Reply Quote 0
    • A
      Alan Kilborn @ZhongPing Zhao
      last edited by May 2, 2022, 2:09 PM

      @zhongping-zhao

      cmd /k cd /d $(CURRENT_DIRECTORY)

      Z 1 Reply Last reply May 2, 2022, 2:53 PM Reply Quote 1
      • P
        PeterJones @ZhongPing Zhao
        last edited by May 2, 2022, 2:11 PM

        @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 ).

        Z 1 Reply Last reply May 2, 2022, 2:56 PM Reply Quote 0
        • Z
          ZhongPing Zhao @Alan Kilborn
          last edited by May 2, 2022, 2:53 PM

          @alan-kilborn
          Thanks a lot for your answer.

          1 Reply Last reply Reply Quote 0
          • Z
            ZhongPing Zhao @PeterJones
            last edited by May 2, 2022, 2:56 PM

            @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
            1 out of 5
            • First post
              1/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors