- 打开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`)
相关推荐