Deleting files with Windows scheduler ?

Atari talk, or the life and the universe and things. Just keep it clean!
Post Reply
User avatar
exxos
Site Admin
Site Admin
Posts: 12239
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
YouTube: https://www.youtube.com/user/exxosuk
Contact:

Deleting files with Windows scheduler ?

Post by exxos » Thu Sep 24, 2020 11:44 am

Is anyone know how I can get windows schedule to delete files in a specific folder which are older than three days ?

I'm just looking for a way to automatically delete older backups as I am having to do this manually currently :roll: I would assume there would be some way to call a batch file and do it from there somehow..
https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
rubber_jonnie
Moderator
Moderator
Posts: 2954
Joined: Thu Aug 17, 2017 7:40 pm
Location: Essex
Contact:

Re: Deleting files with Windows scheduler ?

Post by rubber_jonnie » Thu Sep 24, 2020 11:48 am

Yep, windows scheduler doesn't care about the task, it just schedules it :)

You probably want a Powershell script that gets the directory contents, checks the file age and then deletes anything too old.

Probably something that could be done with Python too.
Collector of old Atari things:
800XL + Ultimate 1MB, 2x 1010 cassette, 1050 + Happy mod, 65XE (128k +APE Warp) & XC12, SIO2SD, 2600jr, 7800 and Lynx II
Atari 520ST (1Meg), 1040STF long button floppy, 2x 1040 STFMs + Gotek, 2x 4160STE with 32Mhz booster, ROM switcher, Mega ST1, Mega ST4, not to mention various bare ST boards for testing including a PAK 68/2 :)
Plus the rest..
Amiga stuff, Mac stuff, Sinclair stuff etc...
www.electronicnothingness.co.uk

User avatar
exxos
Site Admin
Site Admin
Posts: 12239
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
YouTube: https://www.youtube.com/user/exxosuk
Contact:

Re: Deleting files with Windows scheduler ?

Post by exxos » Thu Sep 24, 2020 11:57 am

What happened to good old DOS :lol:
https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
sandord
Trusted Guru
Trusted Guru
Posts: 646
Joined: Mon Aug 13, 2018 10:08 pm
Location: The Netherlands
Contact:

Re: Deleting files with Windows scheduler ?

Post by sandord » Thu Sep 24, 2020 12:21 pm

exxos wrote:
Thu Sep 24, 2020 11:57 am
What happened to good old DOS :lol:
Don't worry, it's no problem at all to use a dirty old BAT too :wink:

User avatar
exxos
Site Admin
Site Admin
Posts: 12239
Joined: Wed Aug 16, 2017 11:19 pm
Location: UK
YouTube: https://www.youtube.com/user/exxosuk
Contact:

Re: Deleting files with Windows scheduler ?

Post by exxos » Thu Sep 24, 2020 12:57 pm

https://www.exxoshost.co.uk/atari/ All my hardware guides - mods - games - STOS
https://www.exxoshost.co.uk/atari/store2/ - All my hardware mods for sale - Please help support by making a purchase.

User avatar
DrF
Moderator
Moderator
Posts: 652
Joined: Thu Aug 17, 2017 1:18 pm

Re: Deleting files with Windows scheduler ?

Post by DrF » Thu Sep 24, 2020 1:02 pm

A app I use called Eraser has some kind of schedule tools built in :

https://eraser.heidi.ie/

I use it manually though for its other file destroying features :lol:

User avatar
IngoQ
Site Admin
Site Admin
Posts: 997
Joined: Tue Aug 22, 2017 8:38 am
Location: Germany

Re: Deleting files with Windows scheduler ?

Post by IngoQ » Thu Sep 24, 2020 3:12 pm

exxos wrote:
Thu Sep 24, 2020 11:57 am
What happened to good old DOS :lol:
You can use something like DelAge, it's a small command-line tool that... now well deletes files based on their age ;)

https://www.horstmuc.de/wbat32.htm
Ingo :geek:

| Atari 1040STE@32MHz | Amiga 1200 (ACA1220) | Atari 800XL (U1MB, SIDE2) | Atari 130XL (Sophia DVI) | C64 (1541 Ultimate II, Rev3 RFMod Replacement) | TI 99/4A (F18A, 32k, FlashROM 99) | Sinclair ZX Spectrum 128 (Stereo, DivMMC) | Amstrad CPC664 (512k, M4 Wifi) | ... |

Post Reply

Return to “CHAT FORUM”