Tuesday, May 29, 2007

Hiding a file in .NET 2005 and other tricks

Really easy:
File.SetAttributes("" & strFileName & "", FileAttributes.ReadOnly + FileAttributes.Hidden + FileAttributes.System)

Make sure you import System.IO

No comments: