Node Red started from Task Scheduler

If I start Node-Red in Windows via Task Scheduler with the user SYSTEM, where is the Flows.json file located?

Kind regards
// Hobbe

C:\Windows\System32\config\systemprofile\.node-red\flows.json or something like that.

You could of course tell node-red which dir to use

node-red --userDir "C:\CustomPath\.node-red"

Better still, run it under a dedicated (and suitably secured) account?

You can also run it as a background Windows Service using the free NSSM utility.

BTW, I always specify paths with forward slashes (/), e.g. C:/MyDir/... as they ensure cross-platform compatibility (Windows, Linux, Pi, Mac etc.). AFAIK paths specified in settings.js must use only forward slashes.

Thanks a lot!

Is this the site for NSSM?
https://nssm.cc/

Yes.