Answer the question
In order to leave comments, you need to log in
How to run bat file from electron.js application?
There is a .bat file that needs to be run from the electon.js application, how can I run it?
Answer the question
In order to leave comments, you need to log in
You can use the shell from the main process
const {shell} = require('electron');
shell.openItem(app.getAppPath() + '\\local\\my-file.bat');
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question