// 打开系统本地文件或者网页链接
const {shell} = require('electron');
// Open a local file in the default app
var path1 = "d:\\ProjectsSpace\\ElectronProjects\\ElectronTest2\\app\\html\\config\\record.txt";
shell.openItem(path1);
// Open a URL in the default way
shell.openExternal('https://github.com');