--ImgCompare Zhangy

--parameter
imgFList_1=openFile "c:/temp/fList_scopic.txt"
imgFList_2=openFile "c:/temp/fList_vesper.txt"
cmpAppPath="C:/Program Files (x86)/mental images/mental ray/bin/imf_diff.exe"
batFile="c:/temp/imgCompare.bat"
diffOutput="D:/ScopicTest/Render_output/compare/"
--error=false

deleteFile batFile

--start here
imgCompareFile=createFile batFile
while not eof imgFlist_1 do
		(
		strPart1=readLine imgFList_1
		strPart2=readLine imgFList_2
		
		finalStr="\""+cmpAppPath+"\" \""+strPart1+"\" \""+strPart2+"\" \""+diffOutput+"Diff_"+(getFilenameFile strPart1)+".jpg\""
		format "%\n" finalStr to:imgCompareFile
		flush imgCompareFile
	 	)
close imgCompareFile