Create a backup copy of files

Help with writing and playing macros

Re: Create a backup copy of files

Postby Manni » Mon Feb 28, 2005 4:34 am

Cool. Your trick worked for the time. To make the date come out correct, I had to adjust the offsets:

Code: Select all
SET FLT=%time: =0%
COPY %1 "%1.%date:~9,4%-%date:~3,2%-%date:~6,2%_%FLT:~0,2%-%FLT:~3,2%-%FLT:~6,2%_%FLT:~9,2%.bak"


Fortunately, there now is a RunTool command in the UE macro language. Thus a tiny macro could be created that runs this batch file whenever a file is loaded into UE.

Manni
User avatar
Manni
Advanced User
Advanced User
 
Posts: 58
Joined: Thu Jul 15, 2004 11:00 pm
Location: Europe

Previous

Return to Macros