Is there a way to get at the time-stamp on a file (in Windows envronment) in WebFOCUS. Basically I want to check the date on a file -- that is -- when it was created.
Alan
December 19, 2006, 09:40 AM
Tony A
Alan,
Use a DOS DIR cmd and pipe the output to a file. Then filedef the file and read it in.
DOS CD C:/ibi/apps/ibisamp
DOS DIR car.mas /TC > tempfile.txt
FILEDEF tempfile DISK C:/ibi/apps/ibisamp/tempfile.txt
-RUN
-REPEAT :Loop 3 TIMES;
-READ tempfile &x.A10.
-:Loop
-READ tempfile &x.A1. &FileDate.A10. &x.A2. &FileTime.A8.
-RUN
DOS ERASE tempfile.txt
Will give you the date and time of the car master file creation in two variables. Manipulate then / combine them in WF to your hearts content.
TThis message has been edited. Last edited by: Tony A,
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
December 20, 2006, 09:29 AM
alandool
Thank you!, Tony. Looks interesting to say the least. Will give it a try.