PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → WX (Windev, Webdev e Windev Mobile) - Live update com arquivo ini
WX (Windev, Webdev e Windev Mobile) - Live update com arquivo ini
Iniciado por Boller, mai., 07 2021 5:06 PM - Sem resposta
Membro registado
3.655 mensagems
Popularité : +175 (223 votes)
Publicado em maio, 07 2021 - 5:06 PM
Exemplo

No servidor
[sistemax]
Versao = 2
......

URLini is string = “http://w.com/versao.ini”

Httprequest (URLini)

Versao is string = Httpgetresult()

Fsavetext(fcurrentdir()+ fsep()+ “versaoserver.ini”, Versao)

Versao is string = iniread (...

Versaolocal is string = iniread (...

If val(versao) > val(versaolocal)

Ftpconnect

If <> -1

Ftpget(URL)

End

Ftpclose

End

Execrun(file)

Endprogram


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/