我該怎麼知道檔案創造時候的時間與資料
主要軟體:
主要軟體版本: 8.0
主要軟體修正版本:
次要軟體: N/A
問題: File/Directory Info function 只能回傳最後一次修改檔案的日期,我該怎麼樣知道檔案創造的日期?
解答: 為了去得到檔案創造的日期資訊,我們必須藉由呼叫KERNEL32.dll中的GetFileAttributesEx來完成.這個功能的回傳值回兩的32bit的數值.你可以利用FileTimeToSystemTime(同樣在KERNEL32.dll)來將這兩個職轉換成我們能讀的資訊.
相關連結:
附加檔案:
- GetFileCreationDate.vi
報告日期: 02/07/2007
最後更新: 07/04/2008
文件偏號: 466JBR90
Other Support Options
Ask the NI Community
Collaborate with other users in our discussion forums
Request Support from an Engineer
A valid service agreement may be required, and support options vary by country.