using System . IO;
FileInfo vFileInfo = new FileInfo ( @"c:\temp\temp.swf" );
vFileInfo . Attributes = FileAttributes . ReadOnly | FileAttributes . Hidden;
// and
DirectoryInfo vDirectoryInfo = new DirectoryInfo ( @"c:\temp" );
vDirectoryInfo . Attributes = FileAttributes . ReadOnly | FileAttributes . Hidden;