Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Empfohlene Antworten

Veröffentlicht

Hallöchen!

Kennt jemand von euch ein Tool das sich dass Änderungsdatum von mehreren Dateien anschaut, überprüft ob das Datum älter als 3 Tage ist und in diesem Fall eine Email verschicken kann? :)

Und für welches OS bitte?

tztz...

bei linux brauchste da kein tool für

das wird sicher weiterhelfen.

Kennt jemand von euch ein Tool das sich dass Änderungsdatum von mehreren Dateien anschaut, überprüft ob das Datum älter als 3 Tage ist und in diesem Fall eine Email verschicken kann? :)
Dafür dürfte es wohl kaum ein fertiges Tool geben - aber ist in ein paar Minuten selbst geschrieben:

package de.perdian.demo;


import java.io.File;

import java.util.Date;


public class FileCheck {


  private static final long THREE_DAYS    = 1000 * 60 * 60 * 24 * 3;


  public static void main(String[] args) {


    File directory                        = new File(args[0]);

    File[] directoryEntries               = directory.listFiles();

    for(File file : directoryEntries) {

      long lastFileAccess                 = file.lastModified();

      long timeSinceLastFileAccess        = System.currentTimeMillis() - lastFileAccess;

      if(timeSinceLastFileAccess > THREE_DAYS) {

        FileCheckEmailSender sender       = new FileCheckEmailSender();

        sender.sendEmail(file);

      }

    }


  }


}


class FileCheckEmailSender {


  public void sendEmail(File modifiedFile) {


    StringBuilder message                 = new StringBuilder();

    message.append("File geändert: ").append(modifiedFile.getAbsolutePath());

    message.append("\nDatum: ").append(new Date(modifiedFile.lastModified()));


    // Jetzt die message irgendwie versenden

    EmailSender.send(message);


  }


}

die Software heißt Easy2Sync für Dateien 1.09

bzw. Easy2Sync für Outlook 1.07

www.itsth.de

Hersteller: Thomas Holz

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.