Batch File to Run Program and Output Time Finished
Posted on 2003-03-13
I am looking to find a way to write a batch file to run an executable. This exectuable will run for several hours converting a SQL database from one version to another. We expect that this process will take approximately 5 hours. I would like to be able to create the batch file in such a way that once the program has completed its task, it will create a file with the date and time that the program stopped. In reality, all I need (minimally) is for after the program is completed, just for the batch program to create a file. This will have a date and time created stamp on the file. The operating system will be on windows 2000 server.
(As a side note, I am not stuck to the idea of batch files only, if someone can come up with a better way, that would be acceptable as well)
I am a novice at batch files. The syntax for such a file would be greatly appreciated. Thanks