Topic: COPYTODAY.VDM as simple backup (1 of 3), Read 43 times, 1 File Attachment
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Thursday, May 17, 2001 04:03 AM

Hello Fritz,

yesterday you asked me about a macro to code:

> Glaubst du, dass mit vertretbaren
> Aufwand ein macro zu schreiben wäre, das
> alle zu einem gegeneben Zeitpunkt in einem
> gegebenen subdirectory geänderten files
> automatisch in ein backup dir oder auf
> Diskette schreibt?

Here is my solution.

This macro copies all files from the current directory that has been modified today to a target directory.
See some more docu inside the macro.

Christian

 
COPYTODAY.VDM (1KB)

 


Topic: Re: COPYTODAY.VDM as simple backup (2 of 3), Read 47 times
Conf: VEDIT Macro Library
From: Fritz Heberlein
Date: Friday, May 18, 2001 05:00 AM

Christian,

copytoday works fine for me. Using it as a post-close macro will prevent me from forgetting to save my daily work to disk.

Just a tiny addition for other users:
if you have a european minded DOS you must change the date command in line 33 to Date(Begin+NOMSG+NOCR).

Thanks and regards,
Fritz

 


Topic: Re: COPYTODAY.VDM as simple backup (3 of 3), Read 56 times, 1 File Attachment
Conf: VEDIT Macro Library
From: Christian Ziemski
Date: Friday, May 18, 2001 07:25 AM

Ooops,
thanks for the bug report.

The problem is that the xcopy command needs different syntax dependent on the Windows version and language :-(

I modified the macro with some comments.
Unfortunately it's not possible to make it automagically working right.
So every user with another OS than Win98-english or NT/2000 has to look into it and modify the date command.

Sorry for the inconvenience. Please send your complaints to MS.

Christian

 
COPYTODAY(1).VDM (2KB)