Subject: | |
From: | |
Reply To: | |
Date: | Wed, 10 Jul 1996 16:59:51 +0200 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Item Subject: Meddelandetext
> Does anyone out there know how to copy a file (using the copy
> command) and use the current date as part of the name? Is this
> possible?
I'm not sure this is what you mean but here's an example of how you can
use the CIs date-variables HPYEAR, HPMONTH, and HPDATE.
:copy f!HPYEAR!HPMONTH!HPDATE,tofile
^MPE-files start whith alpha-characters
or the other way around, of course:
:copy fromfile,t!HPYEAR!HPMONTH!HPDATE
(the point is you can build any filename with these (and other)
variables)
hope this helps
/per
(if you want to use two characters for month and date you can try
something like (one-line):
copy fromfile, b![str( "00" + "!hpmonth", 1 + len("!hpmonth"), 2) +str(
"00"+ "!hpdate", 1 + len("!hpdate"), 2) + "!hpyear"]
)
|
|
|