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.

Batch, logfiles löschen

Empfohlene Antworten

Hallo,

ich brauche eine Batch die logfiles die älter als 30 tage sind löscht!

Ich stelle mir das also so vor dass ich den pfad in der Batch stehen hab und dann die darunterliegenden bacth files die älter als 30 Tage sind lösche

Ich brauche konkrete Lösungn da ich mit dem www leider nicht weitergekommen bin und ansonsten keine ahnung von der Materie habe,...

Danke schonmal :) :old

Konkrete Lösungen gibt es normalerweise nicht kostenlos.

Für dich wahrscheinlich am passendsten:

Delage32 - Horst Schaeffer's Software Pages

Also erstens, doch mit sicherheit sogar!

und zweitens kommt man mit der seite wenn man keine ahnung hat auch nicht weiter...

:confused::confused::confused:

Problem ist dass ich die Syntax nicht zusammenbasteln kann!

Dafür fehlt mir einfach die Logik, ich kann einen Pfad anpassen und so aber eine mehr oder weniger grobe Syntax brächte ich halt. Für leute die davon ahnung haben ist das sicher ne 5 minuten sache...

@echo Off

PushD "x:\mein\LogVerzeichzeichnis"

for %%i in (*.log) do (

for /f "tokens=1-3,5-7 delims=. " %%a in ("%%~ti %date%") do (

ECHO set /a "datediff= %%f*365 + %%e*30 + %%d - %%c*365 - %%b*30 -%%a" && if !datediff! GEQ 30 del /Y "%%~dpn*.*">nul

))

PopD

//Das habe ich im Netz gefuden, ka ob das Sinn macht, es wird wohl eine Differnz gebildet und somit letztendlich alles älter 30 Tage mit .log gelöscht! Was PushD und PopD mach weiß ich nicht!

Was meint ihr?

Toll, irgendwas im Netz finden bringt nicht, wenn man es nicht anwenden kann.

Ich habe dir oben ein Kommandozeilentool verlinkt, mit dem dein Vorhaben in ein paar Zeilen realisiert werden kann.

Mach's ruhig noch komplizierter..

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

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.