Jump to content

Internet Bağlantısını Kontrol Etmek


MehmetISBILIR

Recommended Posts

beyler uzun bir aradan sonra selam

internet varsa indir
HTTP.Download("http://www.google.com/abc.exe", _DesktopFolder .. "\\abc.exe", MODE_BINARY, 20, 80, nil, nil, nil)
internet yoksa indirme + dialog internet

gibi birşey yapılınabilinir mi?


test bağlantısı varmış ama nasıl formüleyecez

kontrol = HTTP.TestConnection("http://www.mydomain.com/myscript.php", 20, 80, nil, nil);
Link to comment
Share on other sites

[codebox]bKontrol = HTTP.TestConnection("http://www.google.com", 20, 80, nil, nil)

if bKontrol then
HTTP.Download("http://www.google.com/abc.exe", _DesktopFolder .. "\\abc.exe", MODE_BINARY, 20, 80, nil, nil, nil)
else
Dialog.Message("Hata", "Lütfen internet bağlantınızı kontrol edip tekrar ediniz!", MB_OK, MB_ICONSTOP, MB_DEFBUTTON1)
end[/codebox]

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...