home *** CD-ROM | disk | FTP | other *** search
/ CD Shareware Magazine 1999 April / CD_Shareware_Magazine_31.iso / WIN95 / INTERNET / ftpctrl3b8.exe / %MAINDIR% / Scripts / Example26.ftp < prev    next >
Encoding:
Text File  |  1999-02-07  |  827 b   |  25 lines

  1. ; *****************************************************
  2. ; Example26.ftp
  3. ; =============
  4. ; This example shows how to check both if a host 
  5. ; can be found on a network and is available!
  6. ; -----------------------------------------------------
  7. ; This example shows the use of this commands:
  8. ;    if HOSTAVAILABLE then...
  9. ;    if...then...else...endif
  10. ; -----------------------------------------------------
  11. ; NOTE: This example works for you if you are connected
  12. ;       to the internet. Otherwise, change the hostname!
  13. ; *****************************************************
  14.  
  15.  
  16. ; This is the host to be search:
  17. Host="transsoft.com"
  18.  
  19. ; Now check for it's presence on the network:
  20. if HostAvailable then
  21.    Message "The host is currently present!"
  22. else
  23.    Message "The host is not present at this time!"
  24. endif
  25.