使用Shell从Excel VBA运行.command文件

我想使用Excel VBA Macro中的脚本运行终端.command文件。我发现我可以使用

Shell ("/Users/user/path/to/file/test.command")

但是会引发错误

“test.command” can’t be opened because microsoft Excel is not allowed to open documents in Terminal.

有什么方法可以允许Excel运行终端命令?

我看到一个选项,可以将.command更改为.sh并与chmod +x一起运行,但是它什么也没做(没有错误,没有结果)。预先感谢。

a316190862 回答:使用Shell从Excel VBA运行.command文件

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3159605.html

大家都在问