Community
    • Login

    Using Notepad++ in Command Prompt and creating files

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 4.5k 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.
    • Sushruth NagarajS
      Sushruth Nagaraj
      last edited by Sushruth Nagaraj

      I’ve somehow managed to open Notepad++ in Command Prompt in Windows 10 with the help of this blog, but now when I try to open Notepad++, it says C:\Program Files\Notepad++\filename.txt doesn't exist. Create it? and now if I click on yes, it says Cannot create C:\Program Files\Notepad++\filename.txt and now I’ve realized that I cannot create files in this directory, how can I change it? Is there any way to change the default save directory? or how can I create files in C drive?

      Michael VincentM 1 Reply Last reply Reply Quote 0
      • Michael VincentM
        Michael Vincent @Sushruth Nagaraj
        last edited by

        @Sushruth-Nagaraj

        You cannot have spaces in your file name. You need to put them in double quotes if so:

        C:\my\path\to\notepad++.exe "C:\Program Files\Notepad++\filename.txt"
        

        Cheers.

        Sushruth NagarajS 1 Reply Last reply Reply Quote 3
        • Sushruth NagarajS
          Sushruth Nagaraj @Michael Vincent
          last edited by

          @Michael-Vincent

          Thanks, I’ll check it out.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors