Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Novlib 3.30 Online Reference - <b> filcretmeget() / filcretmeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FilCreTmeGet() / FilCreTmeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the file creation time.

 Syntax:
 lpszTime = FilCreTmeGet( lpszPath )
 lpszTime = FilCreTmeSet( lpszPath, lpszNewTime )

 Parameters:
 lpszPath    The full NetWare directory path of the file.
 lpszNewTime The new creation time.

 Returns:
 A character string of length 8.

 Description:
 FilCreTmeGet() returns the time that the file specified by lpszPath
 was created. lpszPath must be the full directory path, including the name
 of the file itself and the volume name, e.g. SYS:DATA\KATIE\WP\KATIE.DOC.

 FilCreTmeSet() sets the creation time of the specified file lpszPath to
 lpszNewTime and returns the previous creation time.

 Returns an empty string if an error occurs.

 Example:
 // To find SYS:DATA\KATIE\WP\KATIE.DOC's creation time:

 lpszCreateTime = FilCreTmeGet("SYS:DATA\KATIE\WP\KATIE.DOC")
 if ( !empty( lpszCreateTime ) )
    ? "SYS:DATA\KATIE\WP\KATIE.DOC was created at ", lpszCreateTime
 endif

 // To change file SYS:DATA\KATIE.DOC's creation time to 12:00:00:

 lpszOldtime = FilCreTmeSet("SYS:DATA\KATIE.DOC","12:00:00")
 lpszNewtime = FilCreTmeGet("SYS:DATA\KATIE.DOC")
 if ( !empty( lpszNewtime ) )
    ? "SYS:DATA\KATIE.DOC's creation time was ",lpszOldtime
    ? "SYS:DATA\KATIE.DOC's creation time is now ",lpszNewtime
 endif

 Notes:
 The time is returned in the form HH:MM:SS. These functions only
 work with NetWare 386. Appropriate trustee access rights are required.

See Also: FilCreDteGet() / FilCreDteSet() FilArcTmeGet() / FilArcTmeSet() FilModTmeGet() / FilModTmeSet()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson