Origin Ver. and Service Release (Select Help-->About Origin): OriginPro 8.1 SR3 Operating System: Windows XP
I have two problems related with a current working directory.
1. The graph template file in a current working directory is not working in an interactive job. After copying that template file to "C:\Program Files\OriginLab\Origin81\" folder, the .otp file is processed. How can I fix this problem?
2. In a batch processing, Origin does not search LabTalk script files(.ogs) in my current working directory. Only .ogs files in UFF(UserFiles folder) are processed well. I want to fix it also.
The idea of a Current Directory applies only to commands entered in the Script or Command Window - not to arguments of those commands. As in test.main will run the main section of the test.ogs file in the current working directory, but run.section(test,main) may not work.
In fact, the run.section(filename,section) command does not even know about the Current Directory with respect to 'filename'. Running scripts still work with the expectation that you supply the either the absolute path to run.section or Origin will look in User Files Folder first, then in the system folder (where Origin EXE resides).
If your script files are in the current working directory and they use file.section notation, then they should work.