0
点赞
收藏
分享

微信扫一扫

electron 打开本地文件夹

Ichjns 2023-07-31 阅读 24
electron
  • 打开E盘根目录下名为test的文件夹
const { shell } = require('electron')
shell.openPath('E:\\test')
  • 打开当前electron项目根目录下名为src的文件夹
const { app , shell } = require('electron')
shell.openPath(`${app.getAppPath()}\\src`)
举报

相关推荐

0 条评论