AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Netzwerke Delphi fileexists funzt im internet nicht
Thema durchsuchen
Ansicht
Themen-Optionen

fileexists funzt im internet nicht

Ein Thema von StevenArt · begonnen am 19. Apr 2009 · letzter Beitrag vom 20. Apr 2009
Antwort Antwort
StevenArt

Registriert seit: 27. Feb 2009
13 Beiträge
 
#1

fileexists funzt im internet nicht

  Alt 19. Apr 2009, 17:28
Ich schreib grad ein gleines Programm des Anzeigt ob meine Serven online oder Offline sind.
Mein problem ist dass es dauernd anzeigt dass die offline sind obwohl di schon ohn sind...

Hier mal der Delphi code:
Delphi-Quellcode:
unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TForm1 = class(TForm)
    Label1: TLabel;
    Timer1: TTimer;
    Label2: TLabel;
    Label3: TLabel;
    procedure Timer1Timer(Sender: TObject);
  private
    { Private-Deklarationen }
  public
    { Public-Deklarationen }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Timer1Timer(Sender: TObject);
begin
if fileexists ('http://itstefan.kilu.de/1234.TXT') then Label1.Caption:='Online'
else Label1.Caption:='offline' ;

if fileexists ('http://stevenart.kilu.de/1234.TXT') then Label2.Caption:='Online'
else Label2.Caption:='offline' ;

if fileexists ('http://itstefan.bplaced.de/1234.TXT') then Label3.Caption:='Online'
else Label3.Caption:='offline' ;

end;

end.
Hoffe mir kann jemand helfen.
  Mit Zitat antworten Zitat
Klaus01

Registriert seit: 30. Nov 2005
Ort: München
5.755 Beiträge
 
Delphi 10.4 Sydney
 
#2

Re: fileexists funzt im internet nicht

  Alt 19. Apr 2009, 17:44
Guten Abend,

fileexist hilft Dir nicht viel bei Dateien
die auf einem WebServer gehostet sind.

Schau mal hier im Forum nach URLExists.
Oder baue dir etwas mit Idhttp.head.

Grüße
Klaus
Klaus
  Mit Zitat antworten Zitat
StevenArt

Registriert seit: 27. Feb 2009
13 Beiträge
 
#3

Re: fileexists funzt im internet nicht

  Alt 20. Apr 2009, 05:36
Danke... E´Werds mal ausprobieren!
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 16:27 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz