Calling:

int res = shell_func("set_cur_dir", string path_or_what);

path_or_what - there may be a path ("c:\\my_dir \\") or directive:

"rootconfig" - directory where the list of configurations (tsprglist) LabPP_Automat is located;

"tsimages" is the directory where the icons of the LabPP_Automat configuration are located;

"tsprg" is the directory where the programs of the current LabPP_Automat configuration are located;

"lib" is the directory where the library elements of the current LabPP_Automat configuration are located;

"tmp" is the directory for temporary files, by default, or set by the SETCFG command("tmpfolder", string sTMPFolder);

"rootaddons" is the directory where the LabPP_Automat addons itself or another application that launched the current script for execution is located;

"currentcpp" is the directory where the current script is located;

"currentcppfiles" is the "files" subdirectory.


Example. Install the current directory "C:\MyDir ":


string mydir = "C:\\MyDir";

int res = shell_func("set_cur_dir", mydir);

if (res == 0)

{

   cout << "Work catalog changing sucsessfully";

}

else

{

   cout << "The transition to the directory " << mydir << " failed";

}