Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titlec:\\8Server\\bin\\clean_local_files.cmd
ForFiles /p "C:\LogFiles" /s /d -10 /c "cmd /c del /q @file"
ForFiles /p "C:\LogFilesCall" /s /d -10 /c "cmd /c del /q @file"
ForFiles /p "c:\Data\clients\1\recordings" /s /d -10 /c "cmd /c del /q @file"
ForFiles /p "c:\Data\clients\1\voicemails" /s /d -10 /c "cmd /c del /q @file"
c:
cd \LogFiles
for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d"
cd \LogFilesCall
for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d"
set errorlevel=0

Diese Datei dann mit den Scheduler für Nachts 00:00 Uhr einrichten, mit erhöhte Privilegien (als Administrator) ausführen.

...