请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:CODECOMPOSER 您好!
如果我在 CCS 项目文件夹中有一个脚本、但要使用它、我必须完全限定其位置:
loadJSFile("C:\myCCSproj\exampleDssScript.js")
是否有办法消除路径并只需指定.js 文件名?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
您好!
如果我在 CCS 项目文件夹中有一个脚本、但要使用它、我必须完全限定其位置:
loadJSFile("C:\myCCSproj\exampleDssScript.js")
是否有办法消除路径并只需指定.js 文件名?
您好!
是否有办法取消路径并只需指定.js 文件名?
如果 只想指定文件名,则需要将文件放在当前工作目录中。 Scripting Console 的默认工作目录为: /ccs/eclipse
您可以通过 setCurrentDirectory() DSS API 将工作目录更改为其他内容
示例:
JS:> env.setCurrentDirectory("C:/test")