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> dirmodtmeget() / dirmodtmeset()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 DirModTmeGet() / DirModTmeSet()
------------------------------------------------------------------------------
 Purpose:
 Get / set the last modification time of a directory.

 Syntax:
 lpszTime = DirModTmeGet( lpszPath )
 lpszTime = DirModTmeSet( lpszPath, lpszNewTime )

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

 Returns:
 A character string of length 8.

 Description:
 DirModTmeSet() returns the time of day 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.

 DirModTmeSet() sets the modification time of the specified directory
 lpszPath to the value specified by lpszNewTime and returns the previous
 modification time.

 Returns an empty string if an error occurs.

 Example:
 // To find the time of day that SYS:DATA\KATIE\WP was last modified:
 lpszModTime = DirModTmeGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpszModTime ) )
    ? "SYS:DATA\KATIE\WP was last modified at", lpszModTime
 endif
 // To change directory SYS:DATA\KATIE\WP's last modified time to
 // 12:00:00:
 lpszOldTime = DirModTmeSet( "SYS:DATA\KATIE\WP","12:00:00" )
 lpszNewTime = DirModTmeGet( "SYS:DATA\KATIE\WP" )
 if ( !empty( lpszNewTime ) )
    ? "SYS:DATA\KATIE\WP's last modified time is now", lpszNewTime
 endif

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

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

See Also: DirModDteGet() / DirModDteSet()

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