Perform a shell operation.

Appeal:

int res = shell_func("shellexecute", "open", string spath);

Here:

spath is the path to the program or file to open.


You can open files, send them to print, etc. using the appropriate program specified at the operating system level.

Example. Open the file "Example.xls", located in the directory of the current LabPP_Automat configuration.


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

if (res != 0)

{

   return -1;

}

res = shell_func("shellexecute", "open", "Пример.xls");


The Example file will be opened.xls using the program that is used by default for files with the extension .xls on the user's computer. This is usually EXCEL.

This way you can open EXCEL files from ARCHICAD.