I would like to write a windows batch file for the purpose of renaming a file every 25 seconds. I would also like the batch file to terminate after 300 seconds have passed. How would I go about doing this? Here is what I have thusfar.
START
RENAME test.g test.go
SLEEP 25
RENAME test.go test.g
GOTO START
you will need the sleep command, you can download it here.
then you can do something like this: