Search found 4 matches

by batemanj
21 Jul 2018 10:24
Forum: DOS Batch Forum
Topic: how to backup a text file every hour in windows 7
Replies: 6
Views: 1052

Re: how to backup a text file every hour in windows 7?

It's working if i run the batch file from command prompt but not working from task scheduler because of lack absolute paths of the scratch file.

I tried to change it to copy

Code: Select all

"d:\scratch.txt" "d:\scratch-%dt%.txt"
but this not working. Could you please modify it to set absolute paths?

Thanks!
by batemanj
21 Jul 2018 06:35
Forum: DOS Batch Forum
Topic: how to backup a text file every hour in windows 7
Replies: 6
Views: 1052

Re: how to backup a text file every hour in windows 7?

Many thanks Squashman :D

It worked like charm with time stamp of minutes as well.

Best regards,
by batemanj
20 Jul 2018 23:08
Forum: DOS Batch Forum
Topic: how to backup a text file every hour in windows 7
Replies: 6
Views: 1052

Re: how to backup a text file every hour in windows 7?

Thanks I should have been more clearer.

I know a batch script and keeping it in task scheduler would do but I dont know anything about batch scripting. Appreciate if someone could provide it.
by batemanj
20 Jul 2018 22:27
Forum: DOS Batch Forum
Topic: how to backup a text file every hour in windows 7
Replies: 6
Views: 1052

how to backup a text file every hour in windows 7

Hello, I have windows 7 Pro on my laptop and I need to automate backup of a text file every hour with unique backup file name with date stamp. For ex. My file name = scratch.txt and the backup file name should be scratch-201807210100 (at the time of 1:00 hours) and scratch-201807210200 (at the time ...