I don't have time to go through all the details, but by using time /?, I
found that time /t would help you out.
I got as far as the line
time /t > temp.txt ,
before my batch-writing skills ran out.
Anyway, with date /t and time /t, you should be able to generate unique
names.
Good Luck,
Alan Geist
[log in to unmask]
<<
> From: Joe Pearson [SMTP:[log in to unmask]]
> I want to create a new file in a DOS batch file. How can I ensure the
> filename is unique?
> Adding the date to a file stub would be enough, like:
> COPY EXISTING.FIL NEW%DATE%.FIL
> but there does not seem to be any such environment variable.
> (Long file names are fine.)
>>
-----
**Need help with PCSOFT mailing list? Send an Email to:**
Bob Wright<[log in to unmask]> or Drew Dunn<[log in to unmask]>
|