Aacini wrote:Your request is complicated; you should posted the input files and the desired output...
Thanks for your code.
Yes, sorry, I wasn't thinking clearly.
I have two backup Acronis files and I mounted them and did a
dir /s /a-d >one.txt and second one into
two.txtWhat I am trying to find out is what files are causing the difference in size between the two full backups.
A problem is that there are 250,000+ files in each archive - and what I didn't realise is that I also need to tell which file contains each set of unique files.
So in essence I need to just make the filedate/time/size/name vanish that are the same in each file.
This example isn't very useful but you can see that it's just a dir /s /a-d of each drive letter.
Code: Select all
Volume in drive E is C
Volume Serial Number is F87A-310C
Directory of e:\
12/12/2013 10:53 110 .dir
11/06/2009 07:42 24 autoexec.bat
14/06/2014 20:46 404,250 bootmgr
18/06/2013 22:18 1 BOOTNXT
03/11/2013 20:21 8,192 BOOTSECT.BAK
11/06/2009 07:42 10 config.sys
14/05/2012 04:35 0 IO.SYS
14/05/2012 04:35 0 MSDOS.SYS
12/05/2012 17:37 284,360 MYXLD
12/05/2012 17:37 20 win7.ld
10 File(s) 696,967 bytes
Directory of e:\Boot
27/02/2015 09:24 40,960 BCD
03/11/2012 00:32 40,960 BCD.LOG
13/05/2012 11:16 0 BCD.LOG1
13/05/2012 11:16 0 BCD.LOG2
03/11/2013 20:21 65,536 BOOTSTAT.DAT
27/04/2014 06:15 1,192,280 memtest.exe
03/11/2012 00:08 296 reflect.cfg
7 File(s) 1,340,032 bytes
Directory of e:\Boot\bg-BG
22/08/2013 15:21 77,152 bootmgr.exe.mui
1 File(s) 77,152 bytes
Directory of e:\Boot\cs-CZ
Code: Select all
Volume in drive F is C
Volume Serial Number is F87A-310C
Directory of f:\
12/12/2013 10:53 110 .dir
11/06/2009 07:42 24 autoexec.bat
14/06/2014 20:46 404,250 bootmgr
18/06/2013 22:18 1 BOOTNXT
03/11/2013 20:21 8,192 BOOTSECT.BAK
11/06/2009 07:42 10 config.sys
14/05/2012 04:35 0 IO.SYS
14/05/2012 04:35 0 MSDOS.SYS
12/05/2012 17:37 284,360 MYXLD
12/05/2012 17:37 20 win7.ld
10 File(s) 696,967 bytes
Directory of f:\Boot
21/03/2015 10:28 40,960 BCD
03/11/2012 00:32 28,672 BCD.LOG
13/05/2012 11:16 0 BCD.LOG1
13/05/2012 11:16 0 BCD.LOG2
03/11/2013 20:21 65,536 BOOTSTAT.DAT
27/04/2014 06:15 1,192,280 memtest.exe
03/11/2012 00:08 296 reflect.cfg
7 File(s) 1,327,744 bytes
Directory of f:\Boot\bg-BG
22/08/2013 15:21 77,152 bootmgr.exe.mui
1 File(s) 77,152 bytes
Directory of f:\Boot\cs-CZ
I have simple code to do it, but it takes forever.
Code: Select all
@echo off
copy /b "f2drive.txt" file.tmp
call :check "e2drive.txt"
copy /b "e2drive.txt" file.tmp
call :check "f2drive.txt"
echo done
pause
goto :EOF
:check
(
for /f "usebackq delims=" %%a in ("file.tmp") do (
findstr /i /b /e /c:"%%a" "%~1" >nul || echo %%a
)
)>"not-in-%~1"
goto :EOF