May 1, 2010 09:04 PM
(This post was last modified: May 2, 2010 02:13 PM by codepoet.)
originally posted on dotnet-snippets.com
Description:
With this function you can give a file an attribute like ready-only.
If You Like this tutorial, please check out my other tutorials by clicking ==> H3R3
Description:
With this function you can give a file an attribute like ready-only.
Code
Public Sub SetAttribute(ByVal FileName As String, ByVal NewAttribute As FileAttribute)
Dim Attr As FileAttributes
Attr = File.GetAttributes(FileName)
File.SetAttributes(FileName, Attr Or NewAttribute)
End SubIf You Like this tutorial, please check out my other tutorials by clicking ==> H3R3
PHP & .NET Contributor.

