Hallo,
ich habe ein kleines Problem, meine anwendung die ich programmiere soll bei einem Bestimmten ereigniss eine Datei löschen. Es kann aber vorkommen das diese Datei von einer Anderen Anwendung in diesem Zeitpung genutzt wird. Mir wird denn natürlich auch der fehler ausgegeben das meine Anwendung dann nicht auf die Datei zugreifen kann weil sie ja von einem anderen Prozess genutzt wird, das wars auch schon. Windows hingegen informiert mich, wenn ich diese genutze datei manuell löschen will welcher Prozess auf diese Datei zugreift. Und genau diese Information brauche ich, leider finde ich per SoFu nichts in der richtung. Ich will das wenn die datei gerade genutzt wird mir rückgeben lassen von welchem Prozess sie genutzt wird.
Hat da jemand vielleicht erfahrung bzw. kann mir da jemand weiterhelfen?
MfG Maik
ich habe ein kleines Problem, meine anwendung die ich programmiere soll bei einem Bestimmten ereigniss eine Datei löschen. Es kann aber vorkommen das diese Datei von einer Anderen Anwendung in diesem Zeitpung genutzt wird. Mir wird denn natürlich auch der fehler ausgegeben das meine Anwendung dann nicht auf die Datei zugreifen kann weil sie ja von einem anderen Prozess genutzt wird, das wars auch schon. Windows hingegen informiert mich, wenn ich diese genutze datei manuell löschen will welcher Prozess auf diese Datei zugreift. Und genau diese Information brauche ich, leider finde ich per SoFu nichts in der richtung. Ich will das wenn die datei gerade genutzt wird mir rückgeben lassen von welchem Prozess sie genutzt wird.
Hat da jemand vielleicht erfahrung bzw. kann mir da jemand weiterhelfen?
MfG Maik