Hello,
If I have a script in my CCS project folder, but to use it I have to fully qualify its location:
loadJSFile("C:\myCCSproj\exampleDssScript.js")
Is there a way to do away with the path and just specify the .js filename please?
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.
Hello,
If I have a script in my CCS project folder, but to use it I have to fully qualify its location:
loadJSFile("C:\myCCSproj\exampleDssScript.js")
Is there a way to do away with the path and just specify the .js filename please?
Hello,
Is there a way to do away with the path and just specify the .js filename please?
If you just want to specify the filename only, then you need to have the file inside the current working directory. The default working directory for the Scripting Console is: <CCS INSTALL DIR>/ccs/eclipse
You can change the working directory to something else via the setCurrentDirectory() DSS API
example:
js:> env.setCurrentDirectory("C:/test")