Jump to content

Recommended Posts

Posted

@piccaso

used the standard _FileCountLines from the library "file.au3" before...

Short Benchmark with a 600kB Text File:

300.7 Ticks for the UDF

5.4 Ticks for the DLL

Satisfying :)

Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)

  • 3 months later...
Posted

Hum...that md5.dll file, its returning the same (blank) md5 for files. It doesn't work on folders either (I was hoping...)

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Posted

Works fine for me.

$return1 = DllCall("md5.dll", "str", "GetMD5FromFile", "str", "md5.dll")
$return2 = DllCall("md5.dll", "str", "GetMD5FromString", "str", "String Value")

$return = 'From File: ' & $return1[0] & @LF &_
          'From String: ' & $return2[0]

ClipPut($return)

From File: 0ab37566b6bd301ed477d2a59ef5dc18
From String: 4eb7d75482dd3cdda2051a7da24b00d1
Posted

hum...not sure what the error was...meh

If only it worked with directories :lmao: Close enough, I'll just md5sum the important files...

Writing AutoIt scripts since

_DateAdd("d", -2, _NowCalcDate())
Posted

@nutster

still pissed?  o:)

<{POST_SNAPBACK}>

Never was. I was interested in your contribution and did some optimizations based on what I saw in there, but your posting never annoyed me. Way to go! :lmao:

David Nuttall
Nuttall Computer Consulting

An Aquarius born during the Age of Aquarius

AutoIt allows me to re-invent the wheel so much faster.

I'm off to write a wizard, a wonderful wizard of odd...

  • 1 year later...
Posted

MSLx Fanboy, it's trivial to loop through a directory and grab all the md5s.

And with this dll, it's also FAST!

$files = FileFindFirstFile($some_folder & "\*.*")  
etc.

Very nice, piccaso!

Just what I was after, thanks!

-mu

  • 2 weeks later...
Posted

I always meant to come back to say, this md5.dll, it's nice, but for some reason, files over about 2 or 300MB fail. A hash is returned, but it's not correct, and the dll finishes ahead of time (i.e. quicker than say a 150MB file).

Has anyone else noticed this?

I haven't tested the string length, kinda moved on to a different plugin... :)

-mu

Posted (edited)

Hi, Piccaso

where are the files regex.zip and linecount.zip, I can't download it.

Lost, sorry :oops:

mabe Marc still has linecout.zip

regex.zip is useless now, nutster did a fine job :(

I always meant to come back to say, this md5.dll, it's nice, but for some reason, files over about 2 or 300MB fail. A hash is returned, but it's not correct, and the dll finishes ahead of time (i.e. quicker than say a 150MB file).

Has anyone else noticed this?

I haven't tested the string length, kinda moved on to a different plugin... :)

-mu

Its not desiged to hash such large files, you probably ran out of memory and got back the hash of an empty string (read above)

its fast and small because the hashing routine is written in asembler but its not flexible :D

unlike to other md5 solutions the complete data must be loaded into memory bevore hashing and there are probably better solutions out there (specialy for hashing large files)

Edited by piccaso
CoProc Multi Process Helper libraryTrashBin.nfshost.com store your AutoIt related files here!AutoIt User Map
  • 1 year later...
Posted

the link to md5 fails http://www.autoitscript.com/fileman/users/public/piccaso/md5.dll

where do it get it from?

where do I put the dll in my computer?

ie C:\Program Files\AutoIt3

  • 4 weeks later...
Posted

the link to md5 fails http://www.autoitscript.com/fileman/users/public/piccaso/md5.dll

where do it get it from?

I'm also looking for this file. Can someone post a new link? Thanks! :)

  • 1 year later...
Posted (edited)

Looking for this md5.dll cause the udf doesnt work @ some pcs. ;)

using now HasLib.dll, works fine! thx

Edited by aquila

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...