|
|
|
|
- Managing the errors
- Creation time, modification time or access time
- Equivalence
ceFileTime (Function) In french: ceHeureFichier Returns or modifies the different times associated with a file (creation, modification or access). This file is found on the Mobile Device (Pocket PC) connected to the current computer. Remarks: - ceFileTime can be used only if a connection is established between the current computer and the Mobile device (ceConnect).
- This function is available in 64-bit mode.
// Find out the creation time of "\MyFiles\File.txt" // found on the Mobile device connected to the current computer ResTime = ceFileTime("MyFiles\File.txt", "", fCreation) // Display the time Info("This file was created at: " + TimeToString(ResTime))
// Modify the time of the last access to "\MyFiles\File.txt" // found on the Mobile device connected to the current computer ceFileTime("\MyFiles\File.txt", "174327", fAccess)
Syntax
<Result> = ceFileTime(<File path> [, <New time> [, <Type of time>]])
<Result>: Character string - Time associated with the file (in HHMMSS format),
- Empty string ("") if an error occurred. To find out the error details, use ErrorInfo.
<File path>: Character string (with quotes) Name and full path of the file to use. This file is found on the Mobile Device (Pocket PC) connected to the current computer. <New time>: Optional character string (with quotes) - Modifying a time: new time for the file (in "HHMMSS" format).
- Reading a time: empty string ("").
<Type of time>: Optional Integer constant Indicates the time to use: | | fAccess | Time of last access to the file. | fCreation | Time of file creation. | fModify (Default value) | Time of last modification made to the file. |
Remarks ceFileTime generates an error in the following cases: - the specified file is opened or the file is locked by another application,
- the specified file does not exist,
- the name of the specified file is invalid,
- the format of <New time> is incorrect.
- ...
Creation time, modification time or access time - In some cases, the creation time, the modification time and the access time of a file are identical.
- In some cases, the modification time of a file does not correspond to the expected value. For example, in Windows CE 5.0, the resolution of the modification date is 2 seconds: the modification second is always even.
Equivalence ceFileTime and fTime have equivalent operating modes. The only difference is: - ceFileTime handles a file or a directory found on the Mobile Device (Pocket PC) from a WINDEV application.
- fTime handles a file or a directory found on the Mobile Device (Pocket PC) only from a WINDEV Mobile application.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|