Autor Beitrag
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 01.04.05 17:02 
Moin... ;)

Wer wissen will, ob das DF online ist oder nicht, speichert sich einfach folgenden Code als "CheckDF.bat" irgendwo ab. ;)

ausblenden volle Höhe Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
@echo off
echo.###################################################
echo.#####                                         #####
echo.#####          DF-Ping-Reply-Checker          #####
echo.#####     2005 (c) WeBsPaCe @ DelphiForum     #####
echo.#####                                         #####
echo.###################################################
echo.
if [%1]==[/help] goto :hilfe
if [%1]==[/h] goto :hilfe
if [%1]==[/?] goto :hilfe
if [%1]==[-help] goto :hilfe
if [%1]==[-h] goto :hilfe
if [%1]==[-?] goto :hilfe
if [%1]==[help] goto :hilfe
if [%1]==[h] goto :hilfe
if [%1]==[?] goto :hilfe
set host=%1
if [%1]==[] set host=www.delphi-forum.de
:schleife
ping -n 1 %host% >NUL
if errorlevel 1 echo.[...............] No  ping reply from host %host%
if errorlevel 0 echo.[!!!!!!!!!!!!!!!] Ping reply from host %host%
goto :schleife
:hilfe
echo.Syntax:
echo.CheckDF.bat [host]
echo.
echo.[host]      steht fuer den Host also die Internet-
echo.            adresse, die angepingt werden soll.
echo.            Ist kein Parameter angegeben, dann
echo.            verwendent CheckDF.bat den Host
echo.            "www.delphi-forum.de". Have Fun!!
echo.
retnyg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2754

SNES, GB, GBA, CPC, A500, 486/66, P4/3.0HT: NintendOS, AmigaOS, DoS
Delphi 5, Delphi 7
BeitragVerfasst: Fr 01.04.05 17:08 
gut zu wissen dass es noch andere leute gibt die eine gute, alte batch zu schätzen wissen.

_________________
es gibt leute, die sind genetisch nicht zum programmieren geschaffen.
in der regel haben diese leute die regel...
Silberwolf
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 306

Win XP Home SP2
D5 Prof, D2k5 Pers
BeitragVerfasst: Fr 01.04.05 17:10 
was passiert, wenns nicht online ist?? machts dann übrhaubt nichts?

:oops: Ich weiß,, ich bin doof

_________________
Gestorben, aber nicht vergessen...
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 01.04.05 17:12 
user profile iconSilberwolf hat folgendes geschrieben:
was passiert, wenns nicht online ist?? machts dann übrhaubt nichts?

Dann kommt die Meldung [...............] No  ping reply from host %host%. Wobei %host% für den Host steht, also z.B. www.delphi-foum.de. ;)

user profile iconretnyg hat folgendes geschrieben:
gut zu wissen dass es noch andere leute gibt die eine gute, alte batch zu schätzen wissen.

Tja... Alte Schule... :mrgreen:
Silberwolf
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 306

Win XP Home SP2
D5 Prof, D2k5 Pers
BeitragVerfasst: Fr 01.04.05 17:14 
merci

_________________
Gestorben, aber nicht vergessen...
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Fr 01.04.05 17:25 
jo, der server wird angepingt, gute alte methode mit batch :lol:
mit delphi net so einfach :)
zemy
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 207

Win XP Prof.
D7
BeitragVerfasst: Sa 02.04.05 10:38 
wieso nicht start -> ausführen -> ping delphi-forum.de ? funnzt doch genauso :D Ich unterlasse es eigentlich für solche aufgaben batch-Dateien zu schreiben. Die Dinger würden sich ja dann Bergeweise auftürmen^^ Mit Batchdateien lassen sich aber auch lustige Spielereien machen. z.B.
ausblenden Quelltext
1:
2:
3:
:hmpf
start bla.bat
goto hmpf


(unter bla.bat speichern. Probierts mal aus :D)

_________________
LifeIsToShortToThinkAboutTheShortness
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 02.04.05 10:41 
:lol:

Das hab ich mal unabsichtlich gemacht. Ich hab die Batchdatei genauso genannt, wie ein DOS-Kommando, was ich dadrin ausgeführt hab. ;)
zemy
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 207

Win XP Prof.
D7
BeitragVerfasst: Sa 02.04.05 11:06 
DosCommandos anwenden habe ich erst in der Schule richtig gelernt.... Wenn der Lehrer ne Trantüte ist, man mit der 6h-Aufgabe nach 30min fertig war und INet gesperrt worden war, was blieb einen anderes übrig^^

_________________
LifeIsToShortToThinkAboutTheShortness
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 02.04.05 11:09 
O mann, wie freu ich mich auf Programmieren in der Schule. Und INet-Sperre gibt's für mich nicht, weil ich die selber gebaut hab. :lol:
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Sa 02.04.05 11:28 
Moin!

user profile iconF34r0fTh3D4rk hat folgendes geschrieben:
mit delphi net so einfach :)


Wieso? Guckst du hier.

cu
Narses
WeBsPaCe Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 02.04.05 11:30 
Und?? Wie findste die Batch?? *g* :lol:

Ich werd wieder schlechter oder? *g*
F34r0fTh3D4rk
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 5285
Erhaltene Danke: 29

Win Vista (32), Win 7 (64)
Eclipse, SciTE, Lazarus
BeitragVerfasst: Sa 02.04.05 14:37 
@narses, sag ich doch :D