# Launch a Windows 10 app from Node-Red app running under Windows 10

**URL:** https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232
**Category:** General
**Created:** [14 October 2021 21:32 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232 "2021-10-14T21:32:59Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)
#### Post date: [14 October 2021 21:32 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232/1 "2021-10-14T21:32:59Z")

</div>

I'm new to Node-Red and exploring it possible application as a replacement for an aging IOT app. For my particular application Node-Red would need the facility to launch a Windows app with a command-line argument. Is this possible with Node-Red?

---

<div class="post-metadata">

### Author: ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)
#### Post date: [14 October 2021 21:45 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232/2 "2021-10-14T21:45:21Z")

</div>

Yeah. Here is an example:

```auto
[{"id":"b6affe8d4f2bb434","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"802314e619502081","type":"inject","z":"b6affe8d4f2bb434","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"str","x":290,"y":300,"wires":[["88598da4800c4f2f"]]},{"id":"88598da4800c4f2f","type":"exec","z":"b6affe8d4f2bb434","command":"\"C:\\Program Files\\Docker\\Docker\\Docker Desktop.exe\"","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":600,"y":300,"wires":[["91d3ff121f76242b"],["9802310f8a78e939"],[]]},{"id":"91d3ff121f76242b","type":"debug","z":"b6affe8d4f2bb434","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1110,"y":280,"wires":[]},{"id":"9802310f8a78e939","type":"debug","z":"b6affe8d4f2bb434","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1110,"y":320,"wires":[]}]

```

---

<div class="post-metadata">

### Author: ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)
#### Post date: [14 October 2021 23:55 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232/3 "2021-10-14T23:55:14Z")

</div>

I understand the reference to the string to launch the App, and the apparent reference ("") for the command-line argument. But, nothing else is intelligible to someone unfamiliar with Code-Red, especially the "id" reference; where did that number come from? Is this string launched from a process node? A little more detailed explanation would be appreciated.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [15 October 2021 00:15 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232/4 "2021-10-15T00:15:36Z")

</div>

You can Import that code into node red via ctrl I or the menu option.

I recommend watching this playlist: [Node-RED Essentials](https://www.youtube.com/playlist?list=PLyNBB9VCLmo1hyO-4fIZ08gqFcXBkHy-6). The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.

---

<div class="post-metadata">

### Author: ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)
#### Post date: [15 October 2021 01:15 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232/5 "2021-10-15T01:15:31Z")

</div>

Thanks for the reference to the videos; I hope the videos will explain where that "code" came from.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [15 October 2021 03:15 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232/6 "2021-10-15T03:15:11Z")

</div>

It came from Exporting a set of nodes.

---

<div class="post-metadata">

### Author: ![xytsrm](https://avatars.discourse-cdn.com/v4/letter/x/6de8d8/32.png) [@xytsrm](https://discourse.nodered.org/u/xytsrm)
#### Post date: [15 October 2021 04:15 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232/7 "2021-10-15T04:15:11Z")

</div>

Colin, Just reviewed some of the videos; they're very informative.  
Thank You, X

---

<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: [14 December 2021 04:15 UTC](https://discourse.nodered.org/t/launch-a-windows-10-app-from-node-red-app-running-under-windows-10/52232/8 "2021-12-14T04:15:20Z")

</div>

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