SHA1FileFingerprint(Filename$)

Everything else that doesn't fall into one of the other PB categories.
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

SHA1FileFingerprint(Filename$)

Post by SFSxOI »

For SHA1FileFingerprint(Filename$), Filename$ is the full path to the file, right?
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
UserOfPure
Enthusiast
Enthusiast
Posts: 469
Joined: Sun Mar 16, 2008 9:18 am

Re: SHA1FileFingerprint(Filename$)

Post by UserOfPure »

Try it with and without! :D
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: SHA1FileFingerprint(Filename$)

Post by SFSxOI »

well, thats the problem sort of, it gets a different result with and without the path. So if this is supposed to be a file fingerprint, if the location of the file changes the fingerprint changes too.

Edit: nevermind, I got it straight now. I was looking at two different compiles of the same .exe named the same. I thought I had replaced one but had neglected to do so. My fault. DoH!
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: SHA1FileFingerprint(Filename$)

Post by Rook Zimbabwe »

I had forgotten this... or more accurately i didn't knwo we had it...

Code: Select all

GOOBER$ = SHA1FileFingerprint("c:\windows\notepad.exe")

Debug "FPRINT = "+GOOBER$
gives me an output of:

FPRINT = 7a90f8b051bc82cc9cadbcc9ba345ced02891a6c

in my windws XP Pro....

Is it the same in other XP Pro??? if not that may be an easy way to check if your programs are installed on a new computer... because you could overwrite that info in your file if it was appended in a location you could access and you could check every time!!!

Could you not??? :D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: SHA1FileFingerprint(Filename$)

Post by SFSxOI »

On Windows 7 Ultimate here, for C:\windows\notepad.exe, it gives - f00aa51c2ed8b2f656318fdc01ee1cf5441011a4

I'm not sure if the same file from build to build would be the same. I would expect, well at least my first guess would be, a common file like notepad.exe used in the same build version would be the same at least.
The advantage of a 64 bit operating system over a 32 bit operating system comes down to only being twice the headache.
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: SHA1FileFingerprint(Filename$)

Post by Rook Zimbabwe »

Hmmm... I am thinking this may be right but I thought SOME of the fingerprint was a part of date installed??? Can anyone test this on XP Pro SP3 to doublecheck??? Or Win 7 since we have a FP of that???

:mrgreen:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Demivec
Addict
Addict
Posts: 4283
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: SHA1FileFingerprint(Filename$)

Post by Demivec »

Rook Zimbabwe wrote:Hmmm... I am thinking this may be right but I thought SOME of the fingerprint was a part of date installed??? Can anyone test this on XP Pro SP3 to doublecheck??? Or Win 7 since we have a FP of that???
My fingerprint matches yours Rook, for Win XP Home sp3.

Strange, that would make us twins (or I'm a clone). :mrgreen:
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: SHA1FileFingerprint(Filename$)

Post by Rook Zimbabwe »

Dang... another good idea wasted :wink:

@ Jared... I get to be the EVIL twin!!! :twisted:
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
User avatar
Demivec
Addict
Addict
Posts: 4283
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: SHA1FileFingerprint(Filename$)

Post by Demivec »

Rook Zimbabwe wrote:@ Jared... I get to be the EVIL twin!!! :twisted:
@Rook: You were the EVIL twin last time. Now it's my turn to write buggy code and talk with a Texas axcent. :twisted:
User avatar
Rook Zimbabwe
Addict
Addict
Posts: 4322
Joined: Tue Jan 02, 2007 8:16 pm
Location: Cypress TX
Contact:

Re: SHA1FileFingerprint(Filename$)

Post by Rook Zimbabwe »

I only use the Texas twang when I am out of state to confuse the Yankees!!! :wink:

Though it is a requirement when Texans travel international like! :D
Binarily speaking... it takes 10 to Tango!!!

Image
http://www.bluemesapc.com/
Post Reply