Is it possible to change the working directory of an nw.js application to a different location?

34 views
Skip to first unread message

Nate Paulemon

unread,
Apr 1, 2021, 12:09:49 PM4/1/21
to nw.js
Is it possible to change the working directory of an nw.js application to a different location?

AppData/Local/Temp/nwXXXX_YYYY to somewhere else?

I've run into an issue where at times Windows will delete needed html, css and compiled js binaries and my application will fail from time to time and display a "File Not Found" error in the webview I'm using.

I looked at a thread about this on microsoft's website/forum (https://answers.microsoft.com/en-us/windows/forum/all/windows-10-1803-automatically-deleting-temp-files/28c29da2-a1c0-478d-aa8a-9c6a0cc93968) and found that this actually isn't a good practice.

Thoughts on this?
Reply all
Reply to author
Forward
0 new messages