Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Output file with date&time stamp
Message
 
 
To
25/08/2004 19:17:41
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00936444
Message ID:
00936445
Views:
29
lcFileName  = TTOC(DATETIME(),1) + ".TXT"
set print to (lcFileName)
... 
>
>I have codes to send an output file that supposed to be :
>
>ccyymmddhhmmss.txt will be 20040825183033.txt, datetime() is used maybe not sure
>
>please advise me how to do it:
>
>set print to c:\ccyymmddhhmmss.txt &&here to fix it
>set print on
>set console off
>select mytable
>set head off
>list off
>?"The process date is on "+dtoc(datetime())
>set print off
>set print to
>set console on
>
>At the end, my C: drive should have 20040825183033.txt
>
>TIA
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform