Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.

...

Portuguese

Pagetitle
GetRemoteIniName
GetRemoteIniName

Função: GetRemoteIniName

Retorna o nome e o caminho (Path) do arquivo de configuração (*.INI) do Smart Client.

GetRemoteIniName ( ) --> cRet

cRet
    (caracter)
  • Retorna o nome e o caminho (Path) do arquivo de configuração (*.INI) do Smart Client.
//Exemplo 1GetRemoteIniName1
GetRemoteIniName() // Resultado: "C:\totvs\bin\SmartClient\totvssmartclient.ini"
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Exemplo 2
//Exemplo 2
//Através do exemplo abaixo, podemos obter o path de execução do Remote.
#include "totvs.ch"
Function TstRmtPath()
Local cIniName:= GetRemoteIniName()
Local lUnix:= IsSrvUnix()
Local nPos:= Rat( IIf(lUnix,"/","\"),cIniName )
Local cPathRmt
if nPos!=0
cPathRmt:= Substr( cIniName,1,nPos-1 )else
else
cPathRmt:=""endifQOut
endif
QOut( cPathRmt )
Return
Advanced Protheus 6.09 , Advanced Protheus 7.10 , Microsiga Protheus 8.11 , Protheus 10 , TOTVS Application Server 10 , ByYou Application Server