windows scripting question

nageov3t

Lifer
Feb 18, 2004
42,808
83
91
stupid question, just wondering if this would even be possible...

let's say I've got a service that I absolutely, never want to have running during business hours (but it's fine to run during off-peak hours). there's a command that I can issue via the command prompt to stop the service (and a different command to start it), but would it be possible to script it such that the stop command runs every day at 9 am and the start command runs every day at 6 pm so that no one even has to think about it?