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
 Value of variable %Y changed?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

tib

Switzerland
105 Posts

Posted - 04/29/2004 :  09:01:36 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Hi,
in earlier times the variable %Y contained the path of the Origin.exe file. In my case C:\Origin7Now some scripts seem not to work anymore.
The variable %Y has now the value
C:\Documents and Settings\tib\Application Data\OriginLab\Origin7E\User FilesHow did this change? I am not aware that I changed anything.
How can I change this back?
I tried Menubar | Tools | Options | File Locations .. without success.
Thanks for help, Tilman.


easwar

USA
1965 Posts

Posted - 04/29/2004 :  09:18:43 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Tilman,

The %Y variable holds the location of the user ini files path (or the user files folder). In versions earlier to 7.5, this path was the same as the Origin EXE path because there was no support for multiple users. Starting with version 7.5, we added support for multiple users by introducing the User Files folder. So now %Y points to the user files folder, which can be different for different users (each user gets to decide this path location at the time of first running Origin).

If you want to get the EXE path, you can do this in LabTalk with the following statement:
%a=system.path.program$
The above existed in previous versions as well, but the ini path (%Y) used to be the same as what this returned.

In Origin C, there is GetAppPath() function which can be used to get either the INI path or the EXE path by passing a different argument.

Easwar
OriginLab



Go to Top of Page

tib

Switzerland
105 Posts

Posted - 04/29/2004 :  09:41:57 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks Easwar,
Does this mean I have to change all my LabTalk scripts where %Y is used?
since I cannot set %Y="C:\Origin7\"
I do not have Origin7.5 but V7SR4. So did this change when I applied to SR4? How can I avoid change all my scripts?
Tilman.

Go to Top of Page

Mike Buess

USA
3037 Posts

Posted - 04/29/2004 :  11:53:04 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Tilman,

SR4 should not have changed your INI path, but it looks like it did. You might try a registry fix...

HKEY_CURRENT_USER\Software\OriginLab\Origin 7.0 (or 7)\English

If there is a Path key then change its value to the program path.

Hope that helps,

Mike Buess
Origin WebRing Member
Go to Top of Page

tib

Switzerland
105 Posts

Posted - 05/02/2004 :  3:40:45 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks a lot Mike,
yes, the registry was changed. I changed it back to C:\Origin7
I don't know how this could change (even Laurie cannot explain...)
I don't have Origin7.5 only there should be any User-Path Registry.
Strange enough.
Thanks anyway, Tilman.

Go to Top of Page

Laurie

USA
404 Posts

Posted - 05/05/2004 :  3:58:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi Tilman,

I had a thought...have you changed your login account? My guess is that either you're now using a different user account or permissions have changed on your account.

This may have accounted for the change in %Y.

Please let me know.
Thank you.

OriginLab Technical Support
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