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> dirarcdteget() / dirarcdteset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirArcDteGet() / DirArcDteSet()
------------------------------------------------------------------------------
 Purpose:
 Gets or sets the last archive date of a directory.

 Syntax:
 lpszDate = DirArcDteGet( lpszPath )
 lpszDate = DirArcDteSet( lpszPath, lpszNewDate )

 Parameters:
 lpszPath    The full NetWare path of the directory.
 lpszNewDate The new archive date.

 Returns:
 A character string of length 8 (see Notes).

 Description:
 DirArcDteGet() returns the last date on which 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\WP, where WP is the directory in question.

 DirArcDteSet() sets the archive date of the directory specified by
 lpszPath to the specified date lpszNewDate and returns the previous
 archive date.

 Returns an empty string if an error occurs.

 Example:
 // To find the last date that SYS:DATA\KATIE\WP was archived
 // backed up:
 lpszArcDate = DirArcDteGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpszArcDate ) )
    ? "SYS:DATA\KATIE\WP was last archived on", lpszArcDate
 endif
 // To set the archive date of SYS:DATA\KATIE\WP to today's date:
 lpszoldDate = DirArcDteSet( "SYS:DATA\KATIE\WP", date() )
 lpsznewDate = DirArcDteGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpsznewDate ) )
    ? "SYS:DATA\KATIE\WP's last archive date is now",lpsznewDate
 endif

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

 The format of the date values is the ANSI style "yyyymmdd" except with
 CA-Clipper and CA-Visual Objects where the date values are of type DATE.

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

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