VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Get file info (without API)

by Ryan Duval (1 Submission)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 3.0
Difficulty: Advanced
Date Added: Wed 3rd February 2021
Rating: (9 Votes)

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)

Upload

Download this snippet    Add to My Saved Code

Get file info (without API) Comments

No comments have been posted about Get file info (without API). Why not be the first to post a comment about Get file info (without API).

Post your comment

Subject:
Message:
0/1000 characters