VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get file info (without API)

Ryan Duval  (1 Submission)   Files/File Controls/Input/Output   Visual Basic 3.0   Advanced   Wed 3rd February 2021

Gets the following information from any file:


CompanyName

FileDescription

LegalCopyright

ProductName

FileVersion

ProductVersion

InternalName

OriginalFilename


Basically it's the same information you glean from a file's properties. Uses no API whatsoever.


UPDATE 10/26/00

-------------------

Fixes the problem of reading smaller files that don't have the StringFileInfo section padded with null characters.


UPDATE 10/30/00

-------------------

OK, now it's perfect. Before it wouldn't find certain characters because some files are ignorant and in turn screwed up the return value but now it's all fine. Use it.

Inputs
Filename

Side Effects
Slight nostalgia

Rate Get file info (without API) (9(9 Vote))
Get file info (without API).bas

Get file info (without API) Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters