- 打开E盘根目录下名为
test的文件夹
const { shell } = require('electron')
shell.openPath('E:\\test')
- 打开
当前electron项目根目录下名为src的文件夹
const { app , shell } = require('electron')
shell.openPath(`${app.getAppPath()}\\src`)
微信扫一扫
test的文件夹const { shell } = require('electron')
shell.openPath('E:\\test')
当前electron项目根目录下名为src的文件夹const { app , shell } = require('electron')
shell.openPath(`${app.getAppPath()}\\src`)
相关推荐