Search found 3 matches

by douglasrac
14 Dec 2011 18:52
Forum: DOS Batch Forum
Topic: Automatic Backup - No overwrite
Replies: 4
Views: 4698

Re: Automatic Backup - No overwrite

Thank you. It works. 8)
by douglasrac
14 Dec 2011 15:40
Forum: DOS Batch Forum
Topic: Automatic Backup - No overwrite
Replies: 4
Views: 4698

Re: Automatic Backup - No overwrite

Thanks for the reply.

I don't see how can I put time in the folder with %DATE% instead of DATE/T.

For me it can be anything, just to make it different and avoid overwrite.

I couldn't use %TIME% because I don't know how to construct the code, since it will change the delimiter.
by douglasrac
14 Dec 2011 08:20
Forum: DOS Batch Forum
Topic: Automatic Backup - No overwrite
Replies: 4
Views: 4698

Automatic Backup - No overwrite

Hi, I made a batch file that will be executed everyday at a specified time. Basically all it does it to copy some files from one folder to another and put the date in it, so I have several versions of the same file. @echo off FOR /F "TOKENS=1-4* DELIMS=/" %%A IN ('DATE/T') DO ( SET Year=%%...