Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FTP File Creation Date
#1
Code:
Copy      Help
Ftp f.Connect(Host User Pass)

WIN32_FIND_DATA fd
lpstr s=f.Dir("*" 2 &fd)
rep
,if(s=0) break
,fd.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY)
,
,out fd
,str local.from("$desktop$/Weather/" s)
,f.FileGet(s local)
,s=f.Dir("" 2 &fd)
,;

How would I prefix the file creation date from the FTP to mp3 files I'm downloading with the above code?
Is is possible?

Thanks,
Jimmy Vig
#2
Ftp file creation date is unavailable. Maybe on some servers only.

out fd.ftCreationTime.dwLowDateTime ;;0

File modified date is in fd.ftLastWriteTime, which is of FILETIME type.
Macro Macro1267
Code:
Copy      Help
,str moddate.timeformat("" fd.ftLastWriteTime)
,out moddate


Forum Jump:


Users browsing this thread: 1 Guest(s)