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
 All Forums
 Origin Forum for Programming
 LabTalk Forum
 How to get the script file(*.ogs) current path ?

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkUpload FileInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
kumarb Posted - 05/19/2011 : 12:06:26 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
kumarb Posted - 05/30/2011 : 09:19:30 AM
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
lecrawford Posted - 05/28/2011 : 11:59:44 AM
I think he's talking about the folder "path" within Origin as well.
greg Posted - 05/24/2011 : 12:45:09 PM
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.

The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000