Auto delete of TS-writer LOGs ? (1 Viewer)

polarie

Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,252
    152
    51
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    MediaPortal Version: MP 1.1.2
    MediaPortal Skin: Dark-Maya
    Windows Version: WinXP SP3
    CPU Type: AMD Athlon II 240 / 4850e
    HDD: many different
    Memory: all PC' 2 x 1024 MB
    Motherboard: 3 x Jetway mITX
    Video Card: onBoard HD4200
    Video Card Driver: latest
    Sound Card: AC97
    Sound Card AC3:
    Sound Card Driver:
    1. TV Card: PCTV 4000i Dual-Tuner
    1. TV Card Type: DVB-S
    1. TV Card Driver: BDA
    2. TV Card: Digital Devices Duo-Flex S2
    2. TV Card Type: DVB-S2
    2. TV Card Driver: 2.1.1.33
    3. TV Card:
    3. TV Card Type:
    3. TV Card Driver:
    4. TV Card:
    4. TV Card Type:
    4. TV Card Driver:
    MPEG2 Video Codec: SAF 4 - MPC Gabbest
    MPEG2 Audio Codec: SAF 4 - MPC Gabbest
    h.264 Video Codec: PDVD10
    Satelite/CableTV Provider: 19.2
    HTPC Case: Aurum-HD
    Cooling: passiv - cooling
    Power Supply: Morex
    Remote: Haupauge-MCE
    TV: Infocus X8 - 720p
    TV - HTPC Connection: SVGA


    hi out therer in the www

    just got a question - while i try to fix my own
    "TV-Service connection lost" problem -
    includ reading all the logs -
    i stopped after a few hours (of reading)

    couse there where all together 1100 MB of logs in the log-folder of MePo
    (and my system partition is only 5000 MB big)

    most of it - TS-writer logs (about 850 MB)

    is there a way to delete them from time to time automaticaly?
    (only the TS-logs - couse the other often help)

    :D
     

    polarie

    Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,252
    152
    51
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    AW: Auto delete of TS-writer LOGs ?

    quick&dirty solution:

    batch-file which deletes once a week via task-planer all "TsWriter*.Log" files

    like i wrote not nice- but usefull.
    i am a lousy progger - so i don't have an idea how
    to manage it - to delete only files which are older than one week?
    (think nativ-batch can't handle time-stamps)

    if anybody has an idea - just let it out :)

    have fun
     

    netexplorer

    MP Donator
  • Premium Supporter
  • January 21, 2009
    736
    104
    Home Country
    Germany Germany
    AW: Auto delete of TS-writer LOGs ?

    Hi,
    try this:
    Code:
    for /f "skip=7" %%i in ('dir /b/o:-n *.log') do del %%i
     

    polarie

    Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,252
    152
    51
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    AW: Auto delete of TS-writer LOGs ?

    also :D for that information @ Jameson_uk

    i have tried the command-line from netexplorer
    and it seems to work.

    after running the batch-file with that commandline
    it has left the actual tswriter.log in the folder ...
    so i will see if it deletes the files older than 7 days - (in about one week :D )

    try to report
     

    netexplorer

    MP Donator
  • Premium Supporter
  • January 21, 2009
    736
    104
    Home Country
    Germany Germany
    AW: Auto delete of TS-writer LOGs ?

    You can copy some .txt files to this folder and rename it to .log manually to test the batch.
     

    polarie

    Retired Team Member
  • Premium Supporter
  • November 20, 2006
    1,252
    152
    51
    Hasloh (near Hamburg)
    Home Country
    Germany Germany
    AW: Auto delete of TS-writer LOGs ?

    You can copy some .txt files to this folder and rename it to .log manually to test the batch.

    will do that after "frühstück" ...
    (hätsch ja auch mal selber drauf kommen können :D )

    EDIT say:

    works perfect.
    created some dummy-files like the log-writer would create them.
    (8 or 10 files) and it does delete them depending on the skip-count :D - the date in the file-name ...

    real cool - and smooth

    BIG :D again @ netexplorer
     

    netexplorer

    MP Donator
  • Premium Supporter
  • January 21, 2009
    736
    104
    Home Country
    Germany Germany
    AW: Auto delete of TS-writer LOGs ?

    You're welcome.
     

    Users who are viewing this thread

    Top Bottom