in reply to setting time stamps on files

I'm not exactly sure what you are looking for. However, the unix command 'touch' also does the same thing (and is available for Win in the cygwin gnu binaries..).
Using touch on a file owned by root, to which I have write access (and write/executable access to the directory its in) works.
It can take a parameter of the time you want to set (see the manpage) or even set it the same as another file.

C.

Replies are listed 'Best First'.
Re: Re: setting time stamps on files
by ironpaw (Novice) on Jan 24, 2003 at 00:50 UTC
    I was taking a look at getting touch working but no luck. Forgive my lack of knowledge but does what your saying mean i need to download a "plug in" for perl? cygwin gnu binaries? Thanks Pawz
      I didn't say anything about a plugin. I just meant with that, that if you need a 'touch.exe' for Windows, that there is one available. (Ask Google about the cygwin gnu binaries).

      Can you explain exactly what you are trying to do? I haven't understood it yet.
      Update the time on files:
      1. Not owned by you?
      2. In a directory you can't write to?
      3. Something else?

      C.

        A Posix version of touch is also included in the Windows 2000 Resource Kit. I would go with this over cygwin because it will probably be simpilar.