Purpose
 
 
 Set default current working directory.
 
 
  Synopsis
 
 
 int XPRMsetdefworkdir(const char *path);
 
 
  Argument
 
 
 
  
   | 
     path 
     | 
     New working directory or
     NULL
     | 
 
 
  Return value
 
 
 0 if successful, 1 otherwise.
 
  Further information
 
 
 1. Except for absolute file names, path resolution is relative to the
 current working directory defined by a call to this routine. This parameter is also used as the initial working directory when starting the execution of a model.
 
 
 2. If the provided path is
 NULL (the default value after library initialisation) or an empty string, the system uses the current working directory of the process as provided by the operating system. Using this routine has no effect on the process wide current working directory.
 
 
 3. The provided path is expanded (
 
i.e. it can be relative to the current directory) and tested according to the current restriction settings (see
 
XPRMsetrestrictions). If the restriction
 
NoRead is active, this routine always fails and the current working directory is automatically set to the Mosel temporary directory.
 
  Related topics
 
 
                 
                
                    © 2001-2023 Fair Isaac Corporation. All rights reserved. This documentation is the
                    property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not
                    convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except
                    solely for internal evaluation purposes to determine whether to purchase a license to the software
                    described in this documentation, or as otherwise set forth in a written software license agreement
                    between you and FICO (or a FICO affiliate). Use of this documentation and the software described in
                    it must conform strictly to the foregoing permitted uses, and no other use is permitted.