forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


File Comparison

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help
View previous topic :: View next topic  
Author Message
H5N1Strain
Newbie


Joined: 28 Apr 2010
Posts: 17

PostPosted: Fri May 28, 2010 3:38 am    Post subject: File Comparison Reply with quote

Hey Guys...

It has been a little while since using VDS 5. I need to compare 2 files (small .WAV files). I need to find wheather the files are an exact match. I know it is easy to do, but, I have read the Help file and also searched the forum and havnt been able to find relevent info. Any help would be greatly received.

Googie.
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri May 28, 2010 4:31 am    Post subject: Reply with quote

You could do a md5 hash of both files and see if they match. Search on the forums here, I think Tommy released an md5 dll, and theres a native VDS method of using md5 as well I believe.
Back to top
View user's profile Send private message
H5N1Strain
Newbie


Joined: 28 Apr 2010
Posts: 17

PostPosted: Fri May 28, 2010 6:47 am    Post subject: Reply with quote

Hello,

Does anyone know a link where I can download vdsmd5.dll? I think its by Tommy...

Thanking You...

Googie.
Back to top
View user's profile Send private message
PGWARE
Web Host


Joined: 29 Dec 2001
Posts: 1565

PostPosted: Fri May 28, 2010 2:05 pm    Post subject: Reply with quote

It can be compiled into the vdsdll. On the main vdsworld page, there is a link on the left that lets you compile a custom vdsdll. One of the options is to include the vdsmd5.
Back to top
View user's profile Send private message
Dr. Dread
Professional Member
Professional Member


Joined: 03 Aug 2001
Posts: 1065
Location: Copenhagen, Denmark

PostPosted: Fri May 28, 2010 2:14 pm    Post subject: Reply with quote

DiskNMem.DLL has a CRC32 function that will operate on files...

Greetz
Dread

_________________
~~ Alcohol and calculus don't mix... Don't drink and derive! ~~

String.DLL * advanced string processing
Back to top
View user's profile Send private message
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Sat May 29, 2010 8:13 am    Post subject: Reply with quote

Hi guys Very Happy

If you don't mind use a DOS program you can capture MD5 of a file.

You know

Code:
  RUN program.exe,PIPE,WAIT 2
  %P = @PIPE()


You can download DOS program this site:

http://nosetup.org/programa/65

and use "Descarga" link

This program is very fast

Enjoy it
___________

uVeDeSe
___________
Back to top
View user's profile Send private message Visit poster's website
uvedese
Contributor
Contributor


Joined: 21 Jan 2006
Posts: 169
Location: Spain

PostPosted: Sun May 30, 2010 11:05 am    Post subject: Reply with quote

Here an example using this DOS program (md5file.exe ). Included source file (VDS6 - dsc):

http://dl.dropbox.com/u/921248/MD5.zip

Wink
Back to top
View user's profile Send private message Visit poster's website
WidgetCoder
Contributor
Contributor


Joined: 28 May 2002
Posts: 126
Location: CO, USA

PostPosted: Fri Jun 04, 2010 4:38 am    Post subject: Reply with quote

VDS has CRC and MD5 built into the @encrypt() function, see the "filecrc.dsp" demo included with v6.

If you're building in v5 I wrote a small (22kb) extension you can freely use:
http://www.vdsworld.com/forum/download.php?id=156
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> General Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group