-

2011年8月2日星期二

XCOPY copying folders but not files?

-Here is my batch:



XCOPY D:\CACHESYS*.* F:\BackupPremier\CACHESYS\CACHESYS /Y /E /I



First, I do know I have a cachesys folder within a cachesys folder, it is designed that way. When I run the batch file, it says 0 files copied but it did copy all the folders the files should have been in. This is being run on a Win. 7 machine and this is my first batch on anything newer than XP.



Am I forgetting a piece of the puzzle here? Can anyone assist?



Any help is much appreciated and thanks in advance. Best answer lands the 10!Try:



XCOPY D:\CACHESYS F:\BackupPremier\CACHESYS\CACHESYS /Y /E /ICheck the help page for Xcopy under commands. there is a switch for forcing it to copy all files as well. I have no access to a Windows machine right now, otherwise I would look it up for you.

没有评论:

发表评论