How can I create a batch script and make it run at or after 9 pm. Where it would
1. Run a Ccleaner
2. Run updates.
3. Run a malware Byte
4. And clear out temps.
5. Do disk frag
and lastly
6. Restarts and also sends out output to an email and also email if a task fails.
Is this something that can be done with cmd and put it as a batch file?
I just registered here so I don't know what you guys can help out here on this.
Thank you so much
A Batch script to email when it fails a task
Moderator: DosItHelp
Re: A Batch script to email when it fails a task
abasto wrote:How can I create a batch script and make it run at or after 9 pm.
You'd use task scheduler for that. There is a command line tool to create tasks as well.
Where it would
1. Run a Ccleaner
2. Run updates.
3. Run a malware Byte
4. And clear out temps.
5. Do disk frag
and lastly
6. Restarts and also sends out output to an email and also email if a task fails.
Each task requires batch commands, but the exact commands needed depend on the task itself.
You've shown general tasks and they aren't clear.
Is this something that can be done with cmd and put it as a batch file?
Yes, that's what scripts are most useful for.
The progams being used need command line switches to do their job of course. Some programs don't have the capability to be scripted.
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: A Batch script to email when it fails a task
The current version of MalwareBytes does not support command line arguments, so your task cannot be automated they way you've written it.