I lack even basic knowledge of dos and batch files, but have groped my way to writing a command line script(?) for running chkdsk and appending the output to a log file. That is:
C:\WINDOWS\system32\cmd.exe /C chkdsk Z: /f /X >> "d:\chkdsklogs\Zchkdsk.log" .
This will run in the windows scheduled tasks and appends to a log on my D drive. And it has proved to be useful in detecting and locating problems with hard drives.
However, I have yet to work out how I can amend the command or script, if that is the correct term for it, so that when the task runs it will also add to the log the date and time when the log is appended. Can I do it by amending the command line above, or would I need to run a separate scheduled task to add the date?
I was hoping that I might find a way of achieving that result, preferably so that I end up with a single scheduled task, using Take Command, but I am afraid that the language in the help file assumes a degree of knowledge that I do not have and can see no available way to acquire. Can it be done via Take Command, and if so how?
C:\WINDOWS\system32\cmd.exe /C chkdsk Z: /f /X >> "d:\chkdsklogs\Zchkdsk.log" .
This will run in the windows scheduled tasks and appends to a log on my D drive. And it has proved to be useful in detecting and locating problems with hard drives.
However, I have yet to work out how I can amend the command or script, if that is the correct term for it, so that when the task runs it will also add to the log the date and time when the log is appended. Can I do it by amending the command line above, or would I need to run a separate scheduled task to add the date?
I was hoping that I might find a way of achieving that result, preferably so that I end up with a single scheduled task, using Take Command, but I am afraid that the language in the help file assumes a degree of knowledge that I do not have and can see no available way to acquire. Can it be done via Take Command, and if so how?