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> filarctmeget() / filarctmeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FilArcTmeGet() / FilArcTmeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the last archive time of a file.

 Syntax:
 lpszArcTime = FilArcTmeGet( lpszPath )
 lpszArcTime = FilArcTmeSet( lpszPath,

 lpszNewTime )

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

 Returns:
 A character string of length 8.

 Description:
 FilArcTmeGet() returns the last time of day that the file specified
 by lpszPath was archived (backed up). lpszPath must be the full directory
 path, including the name of the file itself and the volume name,
 e.g.: SYS:DATA\KATIE\WP\JANE.DOC.

 FilArcTmeSet() sets the last archived date of the file to lpszNewTime
 and returns the previous value.

 Returns an empty string if an error occurs.

 Example:
 // To find the time of day that SYS:DATA\KATIE\WP\JANE.DOC was
 // last archived or backed up:

 lpszArcTime = FilArcTmeGet(
 "SYS:DATA\KATIE\WP\JANE.DOC" )
 if ( !empty( lpszArcTime ) )
    ? "SYS:DATA\KATIE\WP\JANE.DOC was last archived at ", lpszArcTime
 endif

 // To change the last archived time of file SYS:DATA\JANE.DOC to
 // 12:00:00:

 lpszOldtime = FilArcTmeSet( "SYS:DATA\JANE.DOC", "12:00:00" )
 lpszNewtime = FilArcTmeGet( "SYS:DATA\JANE.DOC" )
 if ( !empty( lpszNewtime ) )
    ? "SYS:DATA\JANE.DOC's last archived time was ", lpszOldtime
    ? "SYS:DATA\JANE.DOC's last archived 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: FilArcDteGet() / FilArcDteSet()

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