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