# Autostart Node-Red ends up in endless loop?

**URL:** <https://discourse.nodered.org/t/autostart-node-red-ends-up-in-endless-loop/62311>\
**Category:** General\
**Created:** [6 May 2022 19:21 UTC](https://discourse.nodered.org/t/autostart-node-red-ends-up-in-endless-loop/62311 "2022-05-06T19:21:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gawan](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/32.png) [@Gawan](https://discourse.nodered.org/u/Gawan)\
**Post date:** [6 May 2022 19:21 UTC](https://discourse.nodered.org/t/autostart-node-red-ends-up-in-endless-loop/62311/1 "2022-05-06T19:21:10Z")

</div>

Hi,

I try to autostart Node-Red on my Windows Server 2016 Standard OS.  
So I created a CMD-File looking like this:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/2/a25af3a1c6f7d9a0e1cfe05a53d1ff861b7a37fc.png)

If I either autostart or doubleclick the CMD-File it ends up in and endless loop:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/5/b5215fe0efe1a390e61b20031fdac666173fd914.png)

If I go to command line and execute the exactly same command manually, it works fine and NR runs immeadiately and only once.  
Any idea what could go wrong here ?

BR  
Gawan

---

<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:** [6 May 2022 22:10 UTC](https://discourse.nodered.org/t/autostart-node-red-ends-up-in-endless-loop/62311/2 "2022-05-06T22:10:52Z")

</div>

Try using forward slash instead. E.g. `c:/xxxxx`  
Also, add `cd c:\xxxxx` on the line before so that the cwd is set before launching.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [5 July 2022 22:11 UTC](https://discourse.nodered.org/t/autostart-node-red-ends-up-in-endless-loop/62311/3 "2022-07-05T22:11:18Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
