setting timestamp from microsoft visual c?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AtPCLogic

    #1

    setting timestamp from microsoft visual c?

    Hi,
    I'm not usually programming in C, so I'm lost and need a little help.
    I need to copy a file from one directory to another and preserve the timestamp.
    The OS is Windows 32 bit, including XP, 2000, NT and so on. Is there a way to
    set the timestamp on the file for these environments? I know it could be done
    in DOS using interrupt calls, but I don't think that can be done in the newer
    environments. Any suggestions?

    Thanks a bunch!
    Brad
  • Malcolm

    #2
    Re: setting timestamp from microsoft visual c?


    "AtPCLogic" <atpclogic@aol. com> wrote in message[color=blue]
    > Is there a way to set the timestamp on the file for these
    > environments?
    >[/color]
    Calling fopen() will cause the OS to use default behaviour, which is
    probably to timestamp files with current time. C doesn't have any
    timestamping functions, so you will have to trawl through your MVC++
    documentation for "timestamp" to find the right platform-specific function.
    Alternatively a Microsoft-speific group may be able to help.


    Comment

    Working...