Get Origin program path or user file path or group path.
string GetOriginPath( int nPathType = ORIGIN_PATH_SYSTEM, bool bCheckExistsAndDiffFromUserPath = false )
A string containing the requested path, including the final backslash.
EX1
void GetOriginPath_ex1() { string strFile = GetOriginPath(ORIGIN_PATH_SYSTEM) + "originc\\system\\wksheet.h"; ASSERT(strFile.IsFile()); // system header should be installed only in program path strFile = GetOriginPath(ORIGIN_PATH_USER) + "originc\\system\\wksheet.h"; ASSERT(!strFile.IsFile()); // should not have this in user files path strFile = GetOriginPath() + "origin.ini"; ASSERT(strFile.IsFile()); }
Get one of 3 main Origin paths: System, User or Group paths, including final backslash character.
Origin's system path is where Origin's EXE and DLL files are located. Origin C system files are always installed inside the program path.
Origin's User path is assigned by the user when running Origin for the first time. This is where all the files related to a particular customization of Origin is located. You will find origin.ini and other templates and CNF files in this location.
Origin's Group path is where files shared between users are located. ORIGIN_PATH_GROUP : get the path of group folder in Member Machine; ORIGIN_PATH_SERVER_GROUP_FOLDER : get the path of group folder in Group Leader Machine.
origin.h