HP3000-L Archives

July 1996, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Per Ostberg <[log in to unmask]>
Reply To:
Date:
Wed, 10 Jul 1996 16:59:51 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (20 lines)
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"]
)

ATOM RSS1 RSS2