Answer the question
In order to leave comments, you need to log in
How to write a script to automatically delete logs?
The program creates new logs with the *cast.txt mask every time it is launched. We need a script that would delete old log files when the program is restarted. For example, according to the date principle (if the log file was created before the date on which the program was launched, then delete it)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question