Discussion Locked

Delete file using AT Command

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to schedule the deletion of some log files for certain times each day. How can I do this using the AT scheduler as it does not recognize "delete" as a valid part of the command supplied to the AT program? Is there another (better) way to accomplish this?

Any help would be appreciated.

John

6 replies

by beermonster

two suggestions, first you can specify to the at command

"cmd /c delete mylogs.logs /q"

you may need to play around with the quotes there. this command spawns a cmd session, and passes it the delete command. the /c tells the command window to kill itself when your delete is finished. the other way is to put your commands in a batch file, and call that instead IE at 11:00 /interactive c:\mybatfile.cms

hope this helps...

This discussion is closed to new replies.