Einzelnen Beitrag anzeigen

kalmi01
(Gast)

n/a Beiträge
 
#4

Re: Ordner im Netzwerk überwachen, ohne das Programm abschmi

  Alt 27. Sep 2006, 12:26
Hi torud,

gegen das "hängen" Deines Prog's, wenn es auf den nicht vorhandenen
Netzwerkpfad zugreifen will, kannst Du nichts machen.
Dein Prog wartet auf Antwort von Windows und dieses wiederum
sucht das Netzwerk nach dem Pfad ab.

ich habe es mit diese Kompo gelöst:
Delphi-Quellcode:
// -----------------------------------------------------------------------------
// Component Name: TDirectoryWatch .
// Module: DirWatch .
// Description: Implements watching for file changes in a designated .
// directory (or directories). .
// Version: 1.3 .
// Date: 28-FEB-2003 .
// Target: Win32, Delphi 3 - Delphi 6 .
// Authors: Angus Johnson, angusj-AT-myrealbox.com .
// Some portions of code has been copied from the Drag & Drop .
// Component Suite which was co-authored with Anders Melander .
// Copyright: © 2003 Angus Johnson .
// .
// Usage: 1. Add a TDirectoryWatch component to your form. .
// 2. Set its Directory property .
// 3. If you wish to watch its subdirectories too then set .
// the WatchSubDir property to true .
// 4. Assign the OnChange event .
// 5. Set Active to true .
// -----------------------------------------------------------------------------
funzt ganz gut.
  Mit Zitat antworten Zitat