thanks
i like the compare the dir info idea
Thanks
I searched around here a bit and found how to compare files from one of your posts i believe
is there are way to ignore certain lines when comparing since some files will be differnt, also is there a way when creating the dir output to only output the size and name so the date and time won't throw things off?
this is what i have so far and it works except for the files that will never be the same but i'm using it on the original files so the date and time will be different on his copy
@ECHO OFF
for /f %%i in ("%0") do set curpath=%%~dpi
cd /d %curpath%
dir > crc.txt
@echo off
echo Wscript.Sleep 1000> sleep.vbs
start /w wscript.exe sleep.vbs
del sleep.vbs
fc crc.txt mastercrc.txt > difference.txt
if errorlevel 1 goto :different
goto :join
:different
echo files don't match please send me difference.txt
goto :end
:join
del difference.txt
del mastercrc.txt
::joining happens here
echo file is complete
goto :end
:end
echo this will now close in 5 seconds
del crc.tx
::I usualy replace pause with the timer used above
pause
the first problem is that the dir > output puts the files creation date and time which will mess everything up i believe
the second one is the second last two lines in the crc text files
shown here
Comparing files crc.txt and MASTERCRC.TXT
***** crc.txt
01/12/2007 06:20 PM <DIR> .
01/12/2007 06:20 PM <DIR> ..
01/12/2007 06:20 PM 0 crc.txt
01/12/2007 06:19 PM 5,507 mastercrc.txt
01/12/2007 06:13 PM 544 file beta.bat
***** MASTERCRC.TXT
01/12/2007 06:18 PM <DIR> .
01/12/2007 06:18 PM <DIR> ..
01/12/2007 06:18 PM 0 crc.txt
01/12/2007 06:17 PM 5,507 mastercrc.txt
01/12/2007 06:13 PM 544 file beta.bat
*****
***** crc.txt
77 File(s) 735,639,459 bytes
2 Dir(s) 68,251,987,968 bytes free
***** MASTERCRC.TXT
77 File(s) 735,639,459 bytes
2 Dir(s) 68,252,004,352 bytes free
*****
if i could create the crc files with no date and time then could i delete or not compare the last two lines?
thanks again for your help if you don't know anything or don't have time i'll be fine with what I know now