Quantcast
Channel: Windows 7 Miscellaneous forum
Viewing all articles
Browse latest Browse all 11372

xcopy exclude option in Windows 7 failure

$
0
0

I have an XCOPY that works just fine in winXP , but is failing to work properly in W7

xcopy u:\*.* C:\shared\backups\backupBYbatchfile\station7\%NEWDIR% /M /d:%NEWDIR%-%YEARSTUB% /EXCLUDE:C:\shared\backups\backupBYbatchfile\nocopy.txt  /c /s /v /h /Z /Y

The items in the exclude file are being ignored and the xcopy tries to copy the files & directories listed in the file :

"\FRISK Software\"
"\Microsoft Antimalware\"
"\Program Files\"
"\System Volume Information\"
"\Temporary Internet Files\"
"\Temporary Internet Files\"
"\Trend Micro\"
.dmp
.lnk
.sys
.sys
.tmp
\"FRISK Software"\
\"Microsoft Antimalware"\
\"Program Files"\
\"Spybot - Search & Destroy"\
\"System Volume Information"\
\"Temporary Internet Files"\
\"Trend Micro"\
\$Recycle.Bin\
\_ocr\
\Cache\
\cookies\
\dirs\
\dpv\
\Favorites\
\FRISK Software\
\Google\
\GoogleEarth\
\lacslink\
\Macromedia\
\Microsoft Antimalware\
\opcache\
\Program Files\
\Recent\
\Recycler\
\Spybot - Search & Destroy\
\System Volume Information\
\TEMP\
\Temporary Internet Files\
\Trend Micro\
\Windows\
\WINNT\

Basically, xcopy is acting like the file is empty.  Doing some testing on much smaller subsets of targets and exclusions, I confirmed that the W7 just ignores the contents of the exclude file. It is not ignoring the EXCLUDE option, as if i use a filename that does not actually exist, xcopy complains and errors out.

Anyone have an explanation, or even better a fix for the problem? (please do not mention non-xcopy alternatives such as robocopy , it needs to be xcopy)


Viewing all articles
Browse latest Browse all 11372

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>