The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum for Programming
 LabTalk Forum
 How to get the script file(*.ogs) current path ?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

kumarb

India
7 Posts

Posted - 05/19/2011 :  12:06:26 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
I am using LabTalk7.5. I need the current directory path of the script file.How to get it? Kindly help me on this issue.



Kumar B

greg

USA
1379 Posts

Posted - 05/24/2011 :  12:45:09 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I cannot make any sense of this question.

If you are running this script, then you must have included the path to get to the script and scripts do not change that path. Certain commands may include paths as an argument and certain commands may imply a default path, but they have no effect on the 'script file path'.

If you mean the folder 'path' within Origin, then you can use
%a = pe_get_path(%H)$;
%A=;
provided there exists an Origin Child window within the 'current' folder.
Go to Top of Page

lecrawford

1 Posts

Posted - 05/28/2011 :  11:59:44 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
I think he's talking about the folder "path" within Origin as well.
Go to Top of Page

kumarb

India
7 Posts

Posted - 05/30/2011 :  09:19:30 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by greg

I cannot make any sense of this question.

If you are running this script, then you must have included the path to get to the script and scripts do not change that path. Certain commands may include paths as an argument and certain commands may imply a default path, but they have no effect on the 'script file path'.

If you mean the folder 'path' within Origin, then you can use
%a = pe_get_path(%H)$;
%A=;
provided there exists an Origin Child window within the 'current' folder.



I think my question is not clear enough sorry for that.My problem is,

I am executing one script file, It calls one template page which i kept in the script file directory.I don't want to keep the template file path as constant in the script file.So i need the script file directory path on run time to assign the template path & onething i keeps the *.opj file & *.ogs file in the seperate folder.Kindly let me know the solution to get the script file directory path .
Thanks in advance .

Kumar B
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000