/// <summary> /// vss Destroy 命令 /// 删除销毁文件 /// </summary> /// <param name="destroyFolder">vss目录中的路径</param> /// <param name="comment">destroy注释说明</param> public void Destroy(string destroyFolder, string comment) { // Create a VSSDatabase object. IVSSDatabase vssDatabase = new VSSDatabase(); // Open a VSS database using network name // for automatic user login. vssDatabase.Open(this.srcSafeIni, this.username, this.password); IVSSItem vssDestroyFolder = vssDatabase.get_VSSItem(destroyFolder, false); // Remove folder C from folder A. Console.WriteLine("- Remove folder C from folder A"); vssDestroyFolder.Destroy(); DisplayFolder(vssDestroyFolder.Parent); }