Results 1 to 10 of 10
  1. #1
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    Terneuzen, Netherlands
    Posts
    895
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Keep time/date stamp when changing attributes (WinXP)

    Sometimes when I use files I want the NTFS-encryption attribute to be set or un-set. That's easy using file properties (and even works for selections of files and folders). What really irritates me is that when you do that, the Modified Date/Time stamp is changed.

    I know, I know, that is 'by design' maybe, but personally I do not see attributes as integral part of the file, or, in other words, I do not want the Modified Time stamp to change when I play with this (but only when I change the file contents).

    Is there a little tool (right click maybe in explorer) that helps me do that?

    I know about a tool called SAFECOPY that does this when copying files.

  2. #2
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,571
    Thanks
    5
    Thanked 1,056 Times in 925 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    Either Attribute changer or SKTimeStamp | Stefan's Tools allow you to change date/time properties. Both are <img src=/S/free.gif border=0 alt=free width=30 height=15>.

    Joe
    Joe

  3. #3
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    Terneuzen, Netherlands
    Posts
    895
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    I'll certainly check these but what is required is not to manually reset the modified time stamp but to change the encryption attribute WITHOUT changing the modified time stamp... Again, I'll check and will get back with my findings.

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    If you set or clear the read-only, hidden or archive attributes, you only change a flag in the directory entry for the file, you don't change its contents. The last modified date of the file doesn't change because you haven't actually done something to the file itself.

    But if you set or clear the encryption attribute, you do change the file itself: its contents are encrypted or decrypted. Hence the last modified date changes, and you'll have to use one of the utilities to change the timestamp back to the original value.

  5. #5
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    Terneuzen, Netherlands
    Posts
    895
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    Yes, I know that. I just want to have a little tool that does BOTH for me. Change the encryption attribute and immediately after that change the modified stamps back again to the way they were - automatically. (BTW You can argue if the file is different... it is of course different on disk but not when I open it to compare it with a non-encrypted version...)

  6. #6
    Administrator
    Join Date
    Mar 2001
    Location
    St Louis, Missouri, USA
    Posts
    23,571
    Thanks
    5
    Thanked 1,056 Times in 925 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    I think you'll be hardpressed to find a utility like that. You'll probably have to do a little coding yourself. Perhaps, a script using Windows PowerShell or another Microsoft scripting technology found at Welcome to the Script Center or a third party tool such as AutoIt v3 - Automate and Script Windows Tasks - For Free!.

    Joe
    Joe

  7. #7
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,413
    Thanks
    33
    Thanked 195 Times in 175 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    I usually do things like this in a BATch file with a Resource Kit utility from way back called TOUCH.

    The steps are:
    1) do a DIR to get the original (modified) date and time of the file
    2) perform the action
    3) use TOUCH to change the date and time of the file to the values found in 1)

    But the problem is that I don't know of a command line utility to encrypt or decrypt a file - anyone?
    BATcher

    Time prevents everything happening all at once...

  8. #8
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    A quick Google brings up the aptly named Command Line Encrypt 1.00, but more than that I do not know.

  9. #9
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,413
    Thanks
    33
    Thanked 195 Times in 175 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    Thanks, but I was hoping for something like a RUNDLL32 command string, to keep it compatible with Windows Explorer (which may be what the OP would prefer?). I will hunt further if I get some time today...
    BATcher

    Time prevents everything happening all at once...

  10. #10
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    Terneuzen, Netherlands
    Posts
    895
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Keep time/date stamp when changing attributes (WinXP)

    Working on some code... will get back to this when I have something working

    UPDATE: The prototype is working, I'll work on smoothing the interface and code next

Posting Permissions

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