VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Get and Set attributes of a file

themaxx  (2 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Beginner   Wed 3rd February 2021

this is an easy code to get and set any file's attibutes (system, hidden, read-only,...) throught the vb function getatr and setattr

Inputs
- ofthis (string): the full filename - tothis (long): the number associated with the attr. the correct values are in the code ex: 44 = archive (32) + volume (8) + system (4)

Returns
getattributes returns a string that contains the attributes setattributes returns a boolean : true = ok, false = error

Rate Get and Set attributes of a file (2(2 Vote))
Get and Set attributes of a file.bas

Get and Set attributes of a file Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters