DirectoryInfo dirinfo = new DirectoryInfo("C:\Test Folder\Folder2"); dirinfo.Attributes = FileAttributes.Hidden; dirinfo.Attributes = FileAttributes.System;
If Directory.Exists("D:\Folder") Then Dim divinfo As New DirectoryInfo("D:\Folder") divinfo.Attributes = FileAttributes.Hidden End If
string dirPath = @"C:\Test Folder\Folder2"; if (!Directory.Exists(dirPath)) { DirectoryInfo di = Directory.CreateDirectory(dirPath); di.Attributes = FileAttributes.Directory | FileAttributes.Hidden | FileAttributes.System; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)