• arc log

    From Stas Mishchenkov@2:460/5858 to All on Tue May 2 07:59:06 2023
    Hi All!

    For windows users

    https://brorabbit.g0x.ru/files/win/arclog.cmd (rar used) https://brorabbit.g0x.ru/files/win/ziplog.cmd (zip used)

    Archives and deletes all log files in the LOGSDIR directory.
    Places an archive like yyyy.mm.dd.rar in the ARCDIR directory. Deletes
    files older than NUMBER months in it.
    Архивирует и удаляет все файлы с расширеникм log в директории LOGSDIR.
    Помещает архив вида yyyy.mm.dd.rar в директорию ARCDIR. Удаляет в ней все
    файлы старше NUMBER месяцев.

    Usage: arclog.cmd LOGSDIR ARCDIR NUMBER
    ~~~~~~
    LOGSDIR - directory with log files.
    директория с log файлами.
    ARCDIR - directory with archive files.
    директория с файлами архивов.
    NUMBER - how many months to keep archives. Default is 3.
    сколько месяцев хранить архивы. По умолчанию 3.

    Например / For example
    arclog.cmd d:\fido\logs d:\fido\logs\arc 5
    ziplog.cmd d:\fido\logs d:\fido\logs\arc 2

    Have nice nights.
    Stas Mishchenkov.

    --- Хорошо воспитанная женщина - не ругается матом, она матом умеет смотреть.
    * Origin: Lame Users Breeding. Simferopol, Crimea. (2:460/5858)
  • From Carlos Navarro@2:341/234.1 to Stas Mishchenkov on Wed May 3 18:19:00 2023
    02 May 2023 07:59, you wrote to All:

    Places an archive like yyyy.mm.dd.rar in the ARCDIR directory. Deletes files older than NUMBER months in it.

    I've not tested, but I think that these scripts may work for systems that use the dd/mm/yyyy format in %date%, but not those where mm/dd/yyyy is used (e.g. US)

    Carlos

    --- GoldED+/W32-MSVC 1.1.5-b20180707
    * Origin: cyberiada (2:341/234.1)
  • From Stas Mishchenkov@2:460/5858 to Carlos Navarro on Thu May 4 07:43:24 2023
    Hi Carlos!

    03 May 23 18:19, Carlos Navarro -> Stas Mishchenkov:

    Places an archive like yyyy.mm.dd.rar in the ARCDIR directory.
    Deletes
    files older than NUMBER months in it.

    I've not tested, but I think that these scripts may work for systems that use the dd/mm/yyyy format in %date%, but not those where mm/dd/yyyy is used (e.g. US)

    Not both. Arclog.cmd will work properly for them and ziplog.cmd is not hard to modify.
    Generally speaking, these are not full value programs, but just a short example of how you can make it convenient to process logs in the Windows environment.

    Have nice nights.
    Stas Mishchenkov.

    --- Не откладывай пьянку на завтра, а секс на старость.
    * Origin: Lame Users Breeding. Simferopol, Crimea. (2:460/5858)