Server & Client

Hi All, i need to know the Servername and the Path of the Client in Version 3.70. I know that CONTEXTURL shows the Servername, but is there a better way? And is it possible to get the path of the Client? Thanks in advance. Greetings, Frank

Hi, just try this.


 // Servername ServerName := SELECTSTR(1, COMMANDLINE); ServerName := COPYSTR(ServerName, STRPOS(ServerName, '=') + 1, STRLEN(ServerName)); // Nettype Nettype := SELECTSTR(2, COMMANDLINE); Nettype := COPYSTR(Nettype, STRPOS(Nettype, '=') + 1, STRLEN(Nettype)); // Temppath TempPath := SELECTSTR(3, COMMANDLINE); TempPath := COPYSTR(TempPath, STRPOS(TempPath, '=') + 1, STRLEN(TempPath)); // ID ID := SELECTSTR(4, COMMANDLINE); ID := COPYSTR(ID, STRPOS(ID, '=') + 1, STRLEN(ID)); // Path NaviClient myfile.OPEN('fin.exe'); NaviPath := myfile.NAME; myfile.CLOSE; NaviPath := COPYSTR(NaviPath, 1, STRLEN(NaviPath) - 8); // ( \fin.exe = 8 ) 

Greetings, Mike

Thanks for your answer, Mike, But myfile.open(‘fin.exe’) will give an error that the file cannot be found. Any other Solution out there? Greetings, Frank