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> fswssync()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 FSWSSync()
------------------------------------------------------------------------------
 Purpose:
 Synchronizes workstation's date and time to file server.

 Syntax:
 bResult = FSWSSync()

 Parameters:
 None.

 Returns:
 A boolean value (TRUE or FALSE).

 Description:
 FSWSSynchronise() sets both the workstation's CMOS date and time as well
 as the DOS date and time to the default file server's system date and time.

 Returns TRUE if successful or FALSE if an error has occurred.

 Example:
 // To set the workstation's date and time to the file server's:
 ? "Current Workstation Date and Time is ", Date(), Time()
 ? "Current Server Date and Time is ", FSDateGet(), FSTimeGet()
 if FSWSSync()
    ?"Current Workstation Date and Time is ", Date(), Time()
    ?"Current Server Date and Time is ", FSDateGet(), FSTimeGet()
 else
    ? "Error ",NWErrorGet()," has occurred."
 endif

See Also: FSDateGet() / FSDateSet() FSTimeGet() / FSTimeSet()

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