![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: File Dates Topic Summary: Created On: 15-Oct-2004 12:27 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
I have written a small DXL script that copys a file path to a string attribute, and via another button opens this file. (We do cannot use URL's as many users map to different Drives.)
Is there anyway using DXL of obtaining the file Date / Time stamp , returning the value into a string / attribute. |
|
![]() |
|
![]() |
|
Obtain a status handle of the file using one of the following functions...
Stat create(Stream s) Stat create(string filename) You can then use the following functions to get date information of the file Date accessed(Stat s) Date modified(Stat s) Date changed(Stat s) |
|
![]() |
|
![]() |
|
// Use Stat. This is documented in the DXL reference manual under Status handle.
string filename = "E:/temp/fred.txt" Stat s = create(filename) Date dm = modified(s) print(filename " was last modified on " dm "\n") delete(s) ------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
File Dates
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.