Jump to content

Discrepency in file numbers copied during My Docs backup


Recommended Posts

Guest A Taxed Mind
Posted

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)

  • Replies 1
  • Created
  • Last Reply
Guest Pegasus \(MVP\)
Posted

Re: Discrepency in file numbers copied during My Docs backup

 

 

"A Taxed Mind" <ATaxedMind@discussions.microsoft.com> wrote in message

news:1F3657F5-864D-41F2-871A-5DDFFC0A71E3@microsoft.com...

>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


×
×
  • Create New...