How to automatically clean up demo files

Topic created · 1 Posts · 118 Views
  • 1.) Change the path and replace the <number of days> with the number of days to keep the demo files.

    forfiles /p "C:\what\ever\t6r\data\demos" /m *.demo /D -<number of days> /C "cmd /c del @path"

    So it might become:
    forfiles /p "C:\gameserver\plutot6\t6r\data\demos" /m *.demo /D -7 /C "cmd /c del @path"

    2.) Add it as a Task in the Task Shedular like on the screenshots and let it run daily.

    27836e16-1896-4a64-b5bd-fe10493b9d9e-grafik.png

    On the Triggers tab add a new trigger:

    fc20c13d-f1d7-4062-98fb-a9dbe2b930ce-grafik.png

    On the Actions tab add a new action:

    Everything after forfiles from 1.) is a argument, so paste them all in.

    b72b7888-7b38-4124-b325-9c5cec883086-grafik.png

    3.)
    Enter your password for the task to be able to run even when no-one is logged in.

    Done.

Log in to reply