PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Managing the errors
  • Creation time, modification time or access time
  • Equivalence
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
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.
Notes:
  • ceFileTime can be used only if a connection is established between the current computer and the Mobile device (ceConnect).
  • Versions 20 and later
    This function is available in 64-bit mode.
    New in version 20
    This function is available in 64-bit mode.
    This function is available in 64-bit mode.
Example
// 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:
fAccessTime of last access to the file.
fCreationTime of file creation.
fModify
(Default value)
Time of last modification made to the file.
Remarks

Managing the errors

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

The operating mode of ceFileTime is equivalent to the operating mode of fTime.
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.
Components
WINDEVReports and Queries wd230ce.dll
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment