Wednesday, July 29, 2009
Create Folder
System.IO.Directory.CreateDirectory(@"c:\NewFolder");
System.IO.Directory.CreateDirectory(@"c:\NewFolder\NewSubFolder");
// Specify a "currently active folder"
//Create a new subfolder under the current active folder
string activeDir = @"c:\testdir2";
string newPath = System.IO.Path.Combine(activeDir, "mySubDir");
// Create the subfolder
System.IO.Directory.CreateDirectory(newPath);
System.IO.Directory.CreateDirectory(@"c:\NewFolder\NewSubFolder");
// Specify a "currently active folder"
//Create a new subfolder under the current active folder
string activeDir = @"c:\testdir2";
string newPath = System.IO.Path.Combine(activeDir, "mySubDir");
// Create the subfolder
System.IO.Directory.CreateDirectory(newPath);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment