Discrepency in file numbers copied during My Docs backup

A

A Taxed Mind

I have backed up My Docs by Copying and pasting to an external drive.
However there is a discrepancy beween the original and the copy of around 24
megs and more importantly there are 2 files missing from the copy. I can't
work out where the missing files are or should be, although I do notice that
some folders have a very small discrepancy in "size" (but not "Size on
disk"), but recopying them makes no difference.

Any thoughts as to how I can determine what files might be missing, how I
can find them, etc would be greatly appreciated.

Thanks in advance (sorry if this has appeared somewhere, I think the
original got lost during upload)
 
P

Pegasus \(MVP\)

A Taxed Mind said:
I have backed up My Docs by Copying and pasting to an external drive.
However there is a discrepancy beween the original and the copy of around
24
megs and more importantly there are 2 files missing from the copy. I
can't
work out where the missing files are or should be, although I do notice
that
some folders have a very small discrepancy in "size" (but not "Size on
disk"), but recopying them makes no difference.

Any thoughts as to how I can determine what files might be missing, how I
can find them, etc would be greatly appreciated.

Thanks in advance (sorry if this has appeared somewhere, I think the
original got lost during upload)

Try this to see which files are missing:
- Save the code below in the file c:\Windows\CheckFiles.bat.
Watch out for wrapped lines!
- Modify lines 2 and 3 to match your environment.
- Run the batch file.

@echo off
set Source=d:\My Documents
set Target=F:\My Backup
cmd /u /c echo> c:\dir.txt %Source%
cmd /u /c echo>>c:\dir.txt %Target%
cmd /u /c dir /s /a-d /b "%Source%\*.*" >> c:\dir.txt
echo> c:\TempVBS.vbs Set oFSO=CreateObject("Scripting.FileSystemObject")
echo>> c:\TempVBS.vbs Set oArgs=WScript.Arguments
echo>> c:\TempVBS.vbs Set Input=oFSO.GetFile(oArgs(0))
echo>> c:\TempVBS.vbs Set InputStream=Input.OpenAsTextStream(1,TristateTrue)
echo>> c:\TempVBS.vbs Source=InputStream.ReadLine
echo>> c:\TempVBS.vbs Target=InputStream.ReadLine
echo>> c:\TempVBS.vbs While Not InputStream.AtEndOfStream
echo>> c:\TempVBS.vbs Line=InputStream.ReadLine
echo>> c:\TempVBS.vbs Line=Replace(Line, Source, Target, 1, 1, 1)
echo>> c:\TempVBS.vbs if not oFSO.FileExists(Line) then _
echo>> c:\TempVBS.vbs WScript.Echo "File """ ^& Line ^& """ not found."
echo>> c:\TempVBS.vbs Wend
echo>> c:\TempVBS.vbs InputStream.Close
cscript //NoLogo c:\TempVBS.vbs c:\dir.txt
del c:\dir.txt
del c:\TempVBS.vbs
pause
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top