Results 1 to 6 of 6

Thread: set File Date Time

  1. #1

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    set File Date Time

    ok i need a way to set a files modified date and time property

    thanks in advance
    Kris Bennett

  2. #2
    Frenzied Member pnish's Avatar
    Join Date
    Aug 2002
    Location
    Tassie, Oz
    Posts
    1,918

    Re: set File Date Time

    Pete

    No trees were harmed in the making of this post, however a large number of electrons were greatly inconvenienced.

  3. #3

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    Re: set File Date Time

    that works on some files but on others i get:

    err.lastdllerror=6

    the err desc for this is:
    "The handle is invalid"

    any ideas?

    thanks
    kris bennett

  4. #4
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,429

    Re: set File Date Time

    Post the whole block of code (if different from the above link) and state the files it fails on.

  5. #5

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    Re: set File Date Time

    code is the same as above - fails on about 50% of files

  6. #6
    Fanatic Member schoolbusdriver's Avatar
    Join Date
    Jan 2006
    Location
    O'er yonder
    Posts
    1,020

    Re: set File Date Time

    Check out the attachment (post 9) in this thread:- (FileFolderDateStamper.zip) http://www.vbforums.com/showthread.php?t=404544 It's an app I put together for modifying a file's or folder's created, modified and last accessed dates/times. You may be getting errors because the files have read-only attributes. This app takes care of that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width