RE:Leer Archivo en directorio
Hola
Longitud
FileLength(Path)
Fecha de creacion deberemos usar unas API
//Declarar en Local External Functions
//Datos de un Archivo fecha-hora etc
FUNCTION long FindFirstFileA ( string filename, ref os_finddata findfiledata) LIBRARY "KERNEL32.DLL"
FUNCTION boolean FindClose (long handle) LIBRARY "KERNEL32.DLL"
FUNCTION boolean FileTimeToLocalFileTime ( ref os_filedatetime lpFileTime, ref os_filedatetime lpLocalFileTime) LIBRARY "KERNEL32.DLL"
FUNCTION boolean FileTimeToSystemTime (ref os_filedatetime lpFileTime, ref os_systemdatetime lpSystemTime) LIBRARY "KERNEL32.DLL"
//En el Scrip
os_FindData lstr_FindData
os_FindData lstr_FindDataTemp
os_SystemDatetime lstr_SystemDateTime
long handle
String ls_timestamp
handle=FindFirstFileA (File, lstr_FindData)
IF handle=-1 THEN
Return "Error en el Archivo de Consulta"
Else
FileClose(handle)
FileTimeToLocalFileTime (lstr_FindData.str_lastwritetime, lstr_FindDataTemp.str_lastwritetime)
IF FileTimeToSystemTime (lstr_FindDataTemp.str_lastwritetime, lstr_SystemDateTime) THEN
ls_timestamp = string (datetime(date(lstr_SystemDateTime.wYear, &
lstr_SystemDateTime.wMonth, lstr_SystemDateTime.wDay), &
time(lstr_SystemDateTime.wHour, &
lstr_SystemDateTime.wMinute,lstr_SystemDateTime.wSecond)), &
"dd/mm/yyyy hh:mm:ss")
END IF
END IF
// este return si haces una funcion.
//Return ls_timestamp
//En este caso se necesita sólo la fecha
//y hora de creación del archivo, se
//la almacena en la variable ls_timestamp
//La demás información se almacena en la
//variable lstr_FindData de tipo estructura,
//de esta variable puedes sacar la información que requieras.
Luego solo debes aplicar con setitem a las columnas de tu dw
Espero te ayude Suerte te deseo desde ARGENTINA