コード例 #1
0
ファイル: ShellCommands.cs プロジェクト: mehome/cs
 public static void RemoveFolder(string name, string folderPath)
 {
     using (ShellLibrary library = ShellLibrary.Load(ShellLibrary.CreateLibraryFullName(name), true))
     {
         library.RemoveFolder(folderPath);
     }
 }
コード例 #2
0
 /// <summary>
 /// Remove directory from a shell library
 /// </summary>
 /// <param name="folderPath">the directory path to remove</param>
 public void RemoveDirectory(string folderPath)
 {
     using (ShellLibrary shellLibrary = ShellLibrary.Load(LibraryName, true))
     {
         shellLibrary.RemoveFolder(folderPath);
     }
 }