Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - setfiletime() set the time stamp of a file http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 setfiletime()       Set the time stamp of a file
------------------------------------------------------------------------------
 Declaration
   file.hdr

 Syntax
   func logical setfiletime extern
   param const char    cFile, ;
         value date    dDate, ;
         const char(8) cTime

 Arguments
   cFile is the name of file to manipulate.
   dDate is the new date stamp of the file.
   cTime is the new time stamp of the file.

 Return
   A logical indicating the success of operation.

 Description
   The setfiletime() function changes the date/time attributes of a
   file. The function does not validate the supplied parameters.

 Example
   #define EXAMPLE_FILE
   #include example.hdr

   // A file touch utility
   
   proc Test_setfiletime
   if findfirst( argv( 1 ), FIND_ARCHIVE )
      repeat
         setfiletime( findfstr(), today(), time() ) // set current date/time
      until .not. findnext()
   endif
   endproc

   proc main
   Test_setfiletime()
   endproc

See Also: filetime() getfiletime()

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