Using Notepad++ in Command Prompt and creating files
-
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 saysCannot 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? -
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.
-
Thanks, I’ll check it out.