Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试通过 VBScript 打开一个 .dita 文件(我希望它会启动我的编辑器)。我在这行代码中不断收到运行时错误:
CreateObject("WScript.Shell").Run "testfile.dita"
每个有用的错误消息都只是“错误”。我假设它是文件类型,因为它适用于 .exe 和 .txt 文件。任何人都可以建议我如何解决这个问题或提供替代方案吗?
这应该工作
CreateObject("WScript.Shell").Run "cmd /c start testfile.dita"