• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Back dating files

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    Back dating files

    I have a problem with timestamps on files. I create a text file on server A which is then copied over to server B
    Problem is that server B is physically in a different time zone (and under a completely different administration group and domain) and ignores the file untill its own clock has caught up with the modified date/time on the file.

    Is there easy way of giving the file an earlier date last modified time when its created?
    Coffee's for closers

    #2
    Set the clock back ?
    Confusion is a natural state of being

    Comment


      #3
      thanks, but no thanks. I need a software method. Can't mess with the hardware config.
      Coffee's for closers

      Comment


        #4
        Well that's the easy option out of the way then.
        The others depend on what you are using etc.
        Confusion is a natural state of being

        Comment


          #5
          If it's a Unix box, as part of the copying process run "touch <filename>" to reset the file timestamp. If it's Windows, there are a whole bunch of utilities to do the same - search for "windows touch" on Google and take your pick.
          Listen to my last album on Spotify

          Comment


            #6
            Originally posted by Cowboy Bob
            If it's a Unix box, as part of the copying process run "touch <filename>" to reset the file timestamp. If it's Windows, there are a whole bunch of utilities to do the same - search for "windows touch" on Google and take your pick.
            its windows... should have said really

            http://archive.devx.com/dotnet/artic...rj060502-1.asp

            got me what i needed,
            cheers
            Coffee's for closers

            Comment

            Working...
            X