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> dirarctmeget() / dirarctmeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirArcTmeGet() / DirArcTmeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the time a directory was last archived.

 Syntax:
 lpszTime = DirArcTmeGet( lpszPath )
 lpszTime = DirArcTmeSet( lpszPath, lpszNewTime )

 Parameters:
 lpszPath    The full NetWare path of the directory.
 LpszNewTime The new archive time.

 Returns:
 A character string of length 8.

 Description:
 DirArcTmeGet() returns the last time of day that the directory
 specified by lpszPath was archived (backed up). lpszPath must be the
 full directory path, including the name of the directory itself and the
 volume name. For example SYS:DATA\KATIE, where KATIE is the directory in
 question.

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

 Example:
 // To find the time of day that SYS:DATA\KATIE was last archived:
 lpszArcTime = DirArcTmeGet( "SYS:DATA\KATIE" )
 if ( !empty( lpszArcTime ) )
    ? "SYS:DATA\KATIE, was last archived at", lpszArcTime
 endif
 // To set the last archive time of SYS:DATA\KATIE to 12:00:00:
 lpszOldTime = DirArcTmeSet( "SYS:DATA\KATIE", "12:00:00" )
 lpszNewTime = DirArcTmeGet( "SYS:DATA\KATIE" )
 if ( !empty( lpszNewTime ) )
    ? "The last archive time of SYS:DATA\KATIE, is now ", lpszNewTime
 endif

 Notes:
 These functions only work with NetWare 386 and appropriate trustee
 access rights are required.

 The time is returned in the form HH:MM:SS.

See Also: DirArcDteGet() / DirArcDteSet()

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