Hi, I have some questions regarding Windows XP batch files. I have a batch file that backs up all my data to another drive (J)
1. I would like it to record the time and date that the batch starts to backup and time and date that the backup completes.
I was thinking that to get it to write STARTED: date and time and then FINISHED: date and time to a log file and then display this data at the end of the backup in the command window like Backup Started: Date/Time and Finished: Date/Time. Can this be achieved? How.
At this moment I could only know about showing Date and Time when it was finished by using the Date and Time commands.
2. I have scheduled this backup file to run at 8pm on Fridays while I am out at the pub. When I come back, I see it shows the date and time and that is the time it started, 8:00:00 pm. I check the backed up files and they are the old data so it hasn't been backed up. When I manually run the file, the backup runs as supposedly. Why is this?
I am trying to automate backups of my Documents and my program settings. See attached file to see what I mean. :)
Question
ozgeek
Hi, I have some questions regarding Windows XP batch files. I have a batch file that backs up all my data to another drive (J)
1. I would like it to record the time and date that the batch starts to backup and time and date that the backup completes.
I was thinking that to get it to write STARTED: date and time and then FINISHED: date and time to a log file and then display this data at the end of the backup in the command window like Backup Started: Date/Time and Finished: Date/Time. Can this be achieved? How.
At this moment I could only know about showing Date and Time when it was finished by using the Date and Time commands.
2. I have scheduled this backup file to run at 8pm on Fridays while I am out at the pub. When I come back, I see it shows the date and time and that is the time it started, 8:00:00 pm. I check the backed up files and they are the old data so it hasn't been backed up. When I manually run the file, the backup runs as supposedly. Why is this?
I am trying to automate backups of my Documents and my program settings. See attached file to see what I mean. :)
Link to comment
Share on other sites
2 answers to this question
Recommended Posts