The project I'm working on is a Nodejs + Electron application. I'm trying to execute a bat file located in
C:\ProgramData\ApplicationSettings
using const exec = require('child_process').exec;
I could execute the file just fine before i opted to move them to the programdata folder and try to execute it from there.
The code I was trying to use was
exec(path.join(String(process.env.programdata)+'/applicationSettings/', 'command.bat'))
Is this a path problem I am having or is it the fact that ProgramData is hidden? Is there any way for me to execute the bat file from my project?