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> dircretmeget() / dircretmeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirCreTmeGet() / DirCreTmeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set a directory's creation time.

 Syntax:
 lpszTime = DirCreTmeGet( lpszPath )
 lpszTime = DirCreTmeSet( lpszPath, lpszNewTime )

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

 Returns:
 A character string of length 8.

 Description:
 DirCreTmeGet() returns the time that the directory lpszPath was
 created. lpszPath must be the full path, including the name of the
 directory itself and the volume, e.g. SYS:DATA\KATIE\WP, where WP is
 the directory in question.

 DirCreTmeSet() sets the creation time for the specified directory
 lpszPath to the specified time lpszNewTime and returns the previous
 creation time.
 Returns an empty string if an error occurs.

 Example:
 // To find the time that SYS:DATA\KATIE\WP was created:
 lpszCreateTime = DirCreTmeGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpszCreateTime ) )
    ? "SYS:DATA\KATIE\WP was created at", lpszCreateTime
 endif
 // To change the time that directory SYS:DATA\KATIE\WP was created to
 // 12:00:00
 lpszoldTime = DirCreTmeSet( "SYS:DATA\KATIE\WP", "12:00:00" )
 lpsznewTime = DirCreTmeGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpsznewTime ) )
    ? "SYS:DATA\KATIE\WP's creation time is now", lpsznewTime
 endif

 Notes:
 The time is returned in the form "HH:MM:SS". Appropriate trustee
 access rights are required to use these functions.

See Also: DirCreDteGet() / DirCreDteSet() DirArcTmeGet() / DirArcTmeSet()

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