<This question was also posted in TechNet How-to needs.>
Hi hmm,
I have seen this when copying to network drives for client workstations,
but not local.
I use xcopy with the /d switch to copy modified files to another drive
each shutdown, and the log files I have created on the Desktop only show
modified being copied.
--
Terry R.
***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
Pretty much the same here and has been that way for years, Terry. Never
tried it with network drives though.
I already use the /M switch to exclude files I don't want to copy at all.
The /D switch is intended to exclude files that I want copies of, but that
have not changed since the last XCOPY.
"hmm" <h...@discussions.microsoft.com> wrote in message
news:6794D49F-7378-456C...@microsoft.com...
I have not yet solved the problem, but here are two additional pieces of
information:
1. I tested XCOPY /D again. It is working fine when I XCOPY a folder
containing MP3 files, but it requests permission to over-write I XCOPY
folders containing other file types (EXE, TXT, DOC, XLS, PDF, etc.).
2. In all cases, the file system of the destination drive is INCDFS, a Nero
system that allows Windows to write to DVD (from Windows Explorer or Command
Line).
Perhaps the above facts are relevant. Can anyone help me to get XCOPY /D
working? Thanks.
Sorry, can't see any new post from you. You can test my suggestion by
running the script below on a number of files both on the source and the
target file system. Files on NTFS partitions will show a resolution down to
1 second, those on FAT partitions down to 2 seconds.
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oArgs = WScript.Arguments
If oArgs.Count = 0 Then
WScript.Echo "Please supply a file name as a parameter"
WScript.Quit
End If
If Not oFSO.FileExists(oArgs(0)) Then
WScript.Echo "File """ & oArgs(0) & """ not found"
WScript.Quit
End If
WScript.Echo "The date stamp for """ & oArgs(0) & """ is " _
& oFSO.GetFile(oArgs(0)).DateLastModified
Instructions
========
1. Copy & paste the code above into c:\Test.vbs
2. Run this command from the Command Prompt:
cscript //nologo "X:\Some Folder\Some File.ext"{Enter}
XCOPY "C:\Documents and Settings\hmm\My Documents\Miscellaneous Docs\*.*"
"D:\My Documents\Miscellaneous Docs\" /A /D /E /V
As I said before, I am copying from my hard drive (NTFS filing system) to a
DVD (INCDFS filing system).
Any help would be appreciated. Thanks.
Here's the XCOPY line from the supplementary job
I run to quickly back up My Documents to a thumb
drive most days (assumes you are in the folder at
the head of the structure you want to selectively save,
and that the destination is set to the corresponding folder
on J:)
XCOPY *.* J: /D /E /C /Q /H /R /Y /K
This works fine regarding not spuriously overwriting.
And quickly.
Anyhow, it is useful, because I clear the archive flag for files I don't
want copied at all.