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> dirmoddteget() / dirmoddteset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirModDteGet() / DirModDteSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the last modification date of a directory.

 Syntax:
 lpszDate = DirModDteGet( lpszPath )
 lpszDate = DirModDteSet( lpszPath, lpszNewDate )

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

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

 Description:
 DirModDteSet() returns the date that the directory specified by
 lpszPath was last modified. 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.

 DirModDteSet() sets the modification date of the specified directory
 lpszPath to the value specified by lpszNewDate and returns the previous
 modification date.

 Returns an empty string if an error occurs.

 Example:
 // To find the last date that SYS:DATA\KATIE\WP was modified.
 lpszModDate = DirModDteGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpszModDate ) )
    ? "SYS:DATA\KATIE\WP was last modified on", lpszModDate
 endif
 // To change directory SYS:DATA\KATIE\WP's last modified date to today's
 // date:
 lpszOldDate = DirModDteSet( "SYS:DATA\KATIE\WP", date() )
 lpszNewDate = DirModDteGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpszNewDate ) )
    ? "SYS:DATA\KATIE\WP's last modified date is ", lpszNewDate
 endif

 Notes:
 These functions only work with 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: DirModTmeGet() / DirModTmeSet() DirCreDteGet() / DirCreDteSet()

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