+ Reply to Thread
Results 1 to 8 of 8

Thread: Windows changes Date Modified for copy operation!

  1. #1

    Windows changes Date Modified for copy operation!

    Whenever I extract an ISO with 7-zip or WinRAR, all directories change their Modified date to the extraction date. The files retain their original timestamps as far as I can see. Now, this only happens when copying files from one drive to another. Copying from the same drive to the same drive retains timestamps.
    This is a know issue that dates from XP to 10. Only robocopy and xcopy works
    .
    More details are here, on my own thread: https://forums.mydigitallife.info/th...estamps.74131/

    Let's discuss this aberration.

    ---------- Post Merged at 17:23 ---------- Previous Post was at 14:08 ----------

    Upon my research, there is no way to add a context handler to all drives, folders, windows objects for robocopy.
    Thus, the only way to use it quickly would be to add an alias, like doskey
    rcopy=robocopy /E /R:0 /W:0 /XN /XO /XC $*
    Until, I come up with something better, this will have to do.
    Reply With QuoteReply With Quote
    Thanks

  2. #2
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,385
    Activity Longevity
    11/20 19/20
    Today Posts
    4/5 ssss39385
    Quote Originally Posted by Master Razor View Post
    More details are here, on my own thread: https://forums.mydigitallife.info/th...estamps.74131/

    Let's discuss this aberration.
    My experience is the same as abbodi1406's, 7-Zip copies all timestamps correctly. Anyway, when this does happen, it's the program's fault for setting the directory's modified time and then creating files inside, and not the other way around.

    You can mount the ISO and use robocopy /DCOPY:T if timestamps are serious business.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  3. #3
    This is only true if you extract/copy from a location on a drive to another location on THE SAME DRIVE.
    If you extract an ISO from drive E to drive D, it will change the timestamps.
    Reply With QuoteReply With Quote
    Thanks

  4. #4
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,385
    Activity Longevity
    11/20 19/20
    Today Posts
    4/5 ssss39385
    Quote Originally Posted by Master Razor View Post
    This is only true if you extract/copy from a location on a drive to another location on THE SAME DRIVE.
    If you extract an ISO from drive E to drive D, it will change the timestamps.


    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  5. #5
    What OS are you using? And have you installed any updates?
    What filesystem do you have on drive C and D?
    Any tweaks done to the system?

    I have 8.1 Pro, original with no updates.
    Last edited by Master Razor; 02.05.17 at 20:18.
    Reply With QuoteReply With Quote
    Thanks

  6. #6
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,385
    Activity Longevity
    11/20 19/20
    Today Posts
    4/5 ssss39385
    Quote Originally Posted by Master Razor View Post
    What OS are you using? And have you installed any updates?
    Windows 7 x64 Ultimate with all non-telemetry updates as of April 2017.

    What filesystem do you have on drive C and D?
    NTFS on both.

    Any tweaks done to the system?
    Far too many to mention, I should (and will) start a thread to share them.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

  7. #7
    I created two scripts that will make a context menu to copy files via robocopy. I need to make an admin copy and a regular user copy. The regular copy works but the admin does not.

    robocopy_copy_context.cmd
    set SrcDrv=%*
    set SrcDrv=%SrcDrv:"=%
    set /p SrcName=Type in a destination dir name:

    set "psCommand=powershell -Command "(new-object -COM 'Shell.Application')^
    .BrowseForFolder(0,'Please choose a folder.',0,17).self.path""
    for /f "usebackq delims=" %%d in (`%psCommand%`) do set "DestDrv=%%d"
    if "%DestDrv:~3,1%"=="" (set DestDrv=%DestDrv:~0,-1%)

    ROBOCOPY "%SrcDrv%" "%DestDrv%\%SrcName%" /E /R:0 /W:0 /XN /XO /XC /XD "$RECYCLE.BIN" "RECYCLER" "System Volume Information"
    05_Robocopy_Copy_Context.reg
    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\Directory\shell\robocopy_copy_co ntext]
    @="robocopy_copy_context"

    [HKEY_CLASSES_ROOT\Directory\shell\robocopy_copy_co ntext\command]
    @="\"C:\\Tools\\robocopy_copy_context.cmd\" \"%1\""

    [HKEY_CLASSES_ROOT\Drive\shell\robocopy_copy_contex t]
    @="robocopy_copy_context"

    [HKEY_CLASSES_ROOT\Drive\shell\robocopy_copy_contex t\command]
    @="\"C:\\Tools\\robocopy_copy_context.cmd\" \"%1\""



    [HKEY_CLASSES_ROOT\Directory\shell\robocopy_copy_co ntext]
    @="robocopy_copy_context"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    Position="middle"

    [HKEY_CLASSES_ROOT\Directory\shell\robocopy_copy_co ntext\command]
    @="\"C:\\Tools\\robocopy_copy_context.cmd\" \"%1\""
    "IsolatedCommand"="\"C:\\Tools\\robocopy_copy_cont ext.cmd\" \"%1\""


    [HKEY_CLASSES_ROOT\Drive\shell\robocopy_copy_contex t]
    @="robocopy_copy_context"
    "HasLUAShield"=""
    "NoWorkingDirectory"=""
    Position="middle"

    [HKEY_CLASSES_ROOT\Drive\shell\robocopy_copy_contex t\command]
    @="\"C:\\Tools\\robocopy_copy_context.cmd\" \"%1\""
    "IsolatedCommand"="\"C:\\Tools\\robocopy_copy_cont ext.cmd\" \"%1\""
    Reply With QuoteReply With Quote
    Thanks

  8. #8
    Moderator anon's Avatar
    Join Date
    01.02.08
    Posts
    39,385
    Activity Longevity
    11/20 19/20
    Today Posts
    4/5 ssss39385
    Why not?

    Add logging parameters to the command line so that you can find out exactly what's wrong.
    "I just remembered something that happened a long time ago."
    Reply With QuoteReply With Quote
    Thanks

+ Reply to Thread

Tags for this Thread

Posting Permissions

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