用C#在IIS上建立站点己经有很多的文章了,不过,对FTP用户的建立不是很多,

  •         private static void createftp(string username, string path)
  •         {
  •             DirectoryEntry entry = new DirectoryEntry("IIS://localhost/MSFTPSVC/1/Root");
  •             entry.RefreshCache();
  •             DirectoryEntry entry2 = entry.Children.Add(username, "IIsFtpVirtualDir");
  •             entry2.Properties["path"].Insert(0, path);
  •             entry2.Properties["AccessFlags"].Value = "3";
  •             entry2.CommitChanges();
  •             entry.CommitChanges();
  •             entry2.Close();
  •         }
  • 相关文章:

    • 2022-02-09
    • 2022-01-09
    • 2022-12-23
    • 2021-05-25
    • 2021-10-01
    • 2021-07-05
    • 2021-10-25
    • 2021-04-24
    猜你喜欢
    • 2021-05-01
    • 2021-05-14
    • 2022-12-23
    • 2021-10-23
    • 2021-12-27
    • 2021-10-02
    • 2021-06-12
    相关资源
    相似解决方案