我想知道是否有一种方法可以通过node js打开文件夹位置。我找到了this library,但它只能打开文件和URL。
编辑:Fuser的回答让我走上了正确的道路,我发现了这个:
http://documentup.com/arturadib/shelljs的
他的方法和这个都行。
我想知道是否有一种方法可以通过node js打开文件夹位置。我找到了this library,但它只能打开文件和URL。
编辑:Fuser的回答让我走上了正确的道路,我发现了这个:
http://documentup.com/arturadib/shelljs的
他的方法和这个都行。
2条答案
按热度按时间bnl4lu3b1#
只需使用
child_process.exec
或child_process.execSync
沿着正确的shell命令即可。下面是一个工作示例:字符串
vof42yt12#
只需将所需的文件夹发送到
explorer
。