Jump to content


Photo

File Compare


  • Please log in to reply
4 replies to this topic

#1 Agamer

Agamer

    GMC Member

  • GMC Member
  • 152 posts

Posted 24 July 2010 - 07:24 PM

This DLL/Extension will check two given files and return if they are the same.
Really, it's a speedy file compare.

This is my first DLL and GEX.

Example(GEX):
    [Creation Event]
file1=get_open_filename('All Files|*','C:\*')
file2=get_open_filename('All Files|*','C:\*')
switch(file_compare(file1,file2,buff_whole))
{
case 0:show_message('Files Not The Same')break
case 1:show_message('Files Are The Same')break

case -1:show_message("An Error Occurred!#One or more of the files don't exist!")break
}
game_end()

;) I Hope This Can Help Someone!

DOWNLOAD

Edited by Agamer, 24 July 2010 - 07:27 PM.

  • 0

#2 Agamer

Agamer

    GMC Member

  • GMC Member
  • 152 posts

Posted 25 July 2010 - 05:29 PM

My Next Update Will Have Another Argument:
file_compare(file1,file2,buff startpoint,buffsize)
buff startpoint will be the position in the file to start reading.

Edited by Agamer, 25 July 2010 - 09:41 PM.

  • 0

#3 van0014

van0014

    GMC Member

  • GMC Member
  • 285 posts
  • Version:GM8.1

Posted 13 September 2010 - 05:56 AM

Thankyou for creating this dll! It has helped me HEAPS! I am creating an antivirus program for usb autorun viruses, and need to compare a pre-prepared autorun.inf with one on usb's and your dll does exactly that! Brilliant work!!!
  • 0

#4 Agamer

Agamer

    GMC Member

  • GMC Member
  • 152 posts

Posted 15 September 2010 - 08:06 PM

Thankyou for creating this dll! It has helped me HEAPS! I am creating an antivirus program for usb autorun viruses, and need to compare a pre-prepared autorun.inf with one on usb's and your dll does exactly that! Brilliant work!!!


I'm glad this has help you. :)
  • 0

#5 _219270

_219270

    GMC Member

  • New Member
  • 3 posts

Posted 25 April 2013 - 09:00 PM

So could you please re-upload the file?

 


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users