Scenario:
I am writing a script to kick off a defrag against certain folders on a drive. (Which will be scheduled in order to always run in the background.) Within the script, I will issue the command to start the defrag pass.
The problem that I am trying to figure out is this: How can I tell how long the defrag execution has taken place. I would like to put a check inside of the script that says
AFTER 120 MINUTES,
STOP DEFRAG.
Any idea how to check how long the defrag has been running?
Any help is greatly appreciated.
I am writing a script to kick off a defrag against certain folders on a drive. (Which will be scheduled in order to always run in the background.) Within the script, I will issue the command to start the defrag pass.
The problem that I am trying to figure out is this: How can I tell how long the defrag execution has taken place. I would like to put a check inside of the script that says
AFTER 120 MINUTES,
STOP DEFRAG.
Any idea how to check how long the defrag has been running?
Any help is greatly appreciated.