windows - 如何在 shelljs 中获取 microsip 或其他 Windows 终端全局应用程序?
问题描述
比如microsip,我安装了它,我可以在powershell中使用它,就像使用下面的脚本打开microsip
PS G:\yyy> microsip
但是当我使用 shelljs
const shell = require('shelljs')
shell.exec('microsip')
它会返回错误:
UnhandledPromiseRejectionWarning: ReferenceError: microsip is not defined
解决方案
推荐阅读
- javascript - 如何在一段时间内增加我的号码?
- c - 什么是测试零长度字符串的有效方法:`strlen(str) > 0` 或`*str`
- docker - 从 WSL2 上的 docker 在 VS Code 中运行 powershell
- python - Tkinter - 撤回前一个窗口而不是破坏它导致当前窗口出现问题
- wpbakery - WPBakery 上的空白空间元素在移动设备上中断
- node.js - 有什么方法可以限制通过用户的 IP 地址发送到我的 node.js 应用程序的用户请求?
- apache-spark - Databricks Delta 表加载需要很长时间才能加载 1 个记录
- r - 手动更改ggplot中堆叠条形图的顺序
- python - 从调用的函数更新 Tkinter 进度条(通过按钮单击),函数在单独的文档中
- android - Android - TextInputLayout 有一个设定的宽度 (160dp) 和一个提示。当我去看它时,宽度不是160dp。有什么我可以做的吗?