| T O P I C R E V I E W |
| tib |
Posted - 04/29/2004 : 09:01:36 AM 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.
|
| 5 L A T E S T R E P L I E S (Newest First) |
| Laurie |
Posted - 05/05/2004 : 3:58:20 PM 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 |
| tib |
Posted - 05/02/2004 : 3:40:45 PM 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.
|
| Mike Buess |
Posted - 04/29/2004 : 11:53:04 AM 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 |
| tib |
Posted - 04/29/2004 : 09:41:57 AM 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.
|
| easwar |
Posted - 04/29/2004 : 09:18:43 AM 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
|