2026-10-29 22:07:36 +03:00 | | | //+------------------------------------------------------------------+
|
| | | //| InstanceFolder: имя папки экземпляра терминала |
|
| | | //+------------------------------------------------------------------+
|
2026-10-28 23:43:05 +03:00 | | | string InstanceFolder()
|
| | | {
|
| | | string path = TerminalInfoString(TERMINAL_DATA_PATH);
|
| | | StringReplace(path, "\\", "/");
|
| | |
|
| | | int len = StringLen(path);
|
| | | if(len > 0 && StringGetCharacter(path, len - 1) == '/')
|
| | | path = StringSubstr(path, 0, len - 1);
|
| | |
|
| | | int pos = FindLast(path, "/");
|
| | | return (pos >= 0) ? StringSubstr(path, pos + 1) : path;
|
| | | }
|