# Windows node-red settings

**URL:** <https://discourse.nodered.org/t/windows-node-red-settings/10216>\
**Category:** General\
**Created:** [16 April 2019 07:40 UTC](https://discourse.nodered.org/t/windows-node-red-settings/10216 "2019-04-16T07:40:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JokinSegu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JokinSegu](https://discourse.nodered.org/u/JokinSegu)\
**Post date:** [16 April 2019 07:40 UTC](https://discourse.nodered.org/t/windows-node-red-settings/10216/1 "2019-04-16T07:40:14Z")

</div>

Hi, i am trying to put security to the node-red that I have created on windows.  
For that I need to write this command as it says in the cmd when I start node red=  
\Users\Jokin.node-red\settings.js  
So I write nano \Users\Jokin.node-red\settings.js for that and it doens´t allow do you know which command do I need to write in the CMD before "\Users\Jokin.node-red\settings.js" ?

---

<div class="post-metadata">

**Author:** ![stgv](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@stgv](https://discourse.nodered.org/u/stgv)\
**Post date:** [16 April 2019 14:49 UTC](https://discourse.nodered.org/t/windows-node-red-settings/10216/2 "2019-04-16T14:49:34Z")

</div>

Have you tried "notepad"?

Also, I wouldn't rely on Windows correctly parsing the path "\Users\Jokin.node-red\settings.js", you may want to consider writing that one as something along the lines of "C:\Users\Jokin\.node-red\settings.js"

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [16 April 2019 17:07 UTC](https://discourse.nodered.org/t/windows-node-red-settings/10216/3 "2019-04-16T17:07:20Z")

</div>

Also, I'd use `\\` or / instead of \

A backslash is used to generate escape characters eg \n == new line.

---

<div class="post-metadata">

**Author:** ![stgv](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@stgv](https://discourse.nodered.org/u/stgv)\
**Post date:** [17 April 2019 08:40 UTC](https://discourse.nodered.org/t/windows-node-red-settings/10216/4 "2019-04-17T08:40:03Z")

</div>

In CMD you can write backslashes without problems (in fact, it's likely not to parse the alternatives you suggested), but Unix-like paths starting only with "/" (or even "\") are probably not going to be resolved correctly

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [18 April 2019 12:50 UTC](https://discourse.nodered.org/t/windows-node-red-settings/10216/5 "2019-04-18T12:50:28Z")

</div>

forward slashes are indeed be correctly interpreted even in cmd.exe, certainly in PowerShell.

You can use a leading `\` in a Windows path, it will use the current working drive.

NANO is a Linux tool. While Notepad (except for the very latest versions) doesn't like UNIX-like line endings so you sometimes end up with a file that appears to only have a single line. I strongly recommend installing a proper editor. Nodepad++ is a long-term favorite that starts up quickly but is very powerful.

Obviously, a proper code editing environment is also very useful, if you use VSCode from Microsoft (free), you will have a very powerful JavaScript/Node.js based editing environment. If you do install VScode, you should be able to do `code file/name.js` or whatever from the command prompt.
