Cron-Job in Electron is it possible?


#1

Hello Team,
I am new in electron, i would like to know, is it possible to generate script from where my test.txt file will deleted adter every 2 hours.Something like cron job.

Please help me.
Thanks


#2

Did you find a solution to this? I have a similar need.


#3

Just read up on JavaScript timing functions.


#4

Hello komplexb,
Yea i found about cron-job. I am using cron node module, it’s really helpful to me.
https://www.npmjs.com/package/cron