Пример #1
0
 protected override void DoAction()
 {
     foreach (FileInfo file in Pwd.EnumerateFiles(ParseStringForVariable(From)))
     {
         file.MoveTo(ParseStringForVariable(To));
     }
 }
Пример #2
0
 protected override void DoAction()
 {
     foreach (FileInfo file in Pwd.EnumerateFiles(ParseStringForVariable(Filename)))
     {
         RecycleOption option = SendToRecyclingBin
                                        ? RecycleOption.SendToRecycleBin
                                        : RecycleOption.DeletePermanently;
         FileSystem.DeleteFile(file.FullName, UIOption.AllDialogs, option);
     }
 }