File Date & Time


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: File Date & Time

  1. #1
    Joe P Guest

    File Date & Time


    Greetings,

    I'm working on a VB6 project where I'm storing and pulling out RTF and BMP
    files to/from an Access 97 database. The graphic file data is being stored
    in an OLE field and I'm using both GetChunk and AppendChunk methods. I'm
    also storing the filename, file date/time, and the file size.

    Later in the program, I test if the file exists and if so, that the file
    sizes match. I'd like to also compare the file date/time between the database
    & on disk.

    The problem is that if the graphic files are written out to disk from the
    database, they are stamped with the current system date & time. Are there
    Windows API calls to set a files date & time.

    Thanks,
    Joe
    Share on Google+

  2. #2
    Dan Appleman Guest

    Re: File Date & Time

    Joe:

    Try the SetFileTime API

    Dan


    Joe P wrote:

    > Greetings,
    >
    > I'm working on a VB6 project where I'm storing and pulling out RTF and BMP
    > files to/from an Access 97 database. The graphic file data is being stored
    > in an OLE field and I'm using both GetChunk and AppendChunk methods. I'm
    > also storing the filename, file date/time, and the file size.
    >
    > Later in the program, I test if the file exists and if so, that the file
    > sizes match. I'd like to also compare the file date/time between the database
    > & on disk.
    >
    > The problem is that if the graphic files are written out to disk from the
    > database, they are stamped with the current system date & time. Are there
    > Windows API calls to set a files date & time.
    >
    > Thanks,
    > Joe


    Share on Google+

Similar Threads

  1. Replies: 1
    Last Post: 05-05-2003, 04:53 AM
  2. Date & Time
    By Randy in forum VB Classic
    Replies: 6
    Last Post: 04-18-2001, 01:49 PM
  3. Replies: 0
    Last Post: 08-22-2000, 10:54 PM
  4. Date in the file name
    By Keflavik in forum VB Classic
    Replies: 2
    Last Post: 06-29-2000, 05:53 PM
  5. Need Faster file get name & date routine.
    By Tom Sell in forum authorevents.kurata
    Replies: 1
    Last Post: 04-20-2000, 02:28 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center