using System.IO;// folder path that you want to createstring path = @"c:\createfolder\NewFolder";if (!Directory.Exists(path)){// Creating folderDirectoryInfo di = Directory.CreateDirectory(path);// setting attributesdi.Attributes = FileAttributes.Directory | FileAttributes.Hidden;}
No comments:
Post a Comment