public ExecTask(FilePath program) { Program = program; Args = string.Empty; }
public static void CopyToFile(FilePath file, FilePath toFile, Overwrite overwrite = Overwrite.IfNewer, bool failOnError = true) { new CopyTask(file) { ToFile = toFile, Overwrite = overwrite, FailOnError = failOnError }.Execute(); }
public static void Rename(FilePath file, FilePath toFile, Overwrite overwrite) { new MoveTask(file) { ToFile = toFile, Overwrite = overwrite }.Execute(); }
public static void CopyToFile(FilePath file, FilePath toFile) { new CopyTask(file) { ToFile = toFile }.Execute(); }
public static void Move(FilePath file, DirectoryPath toDir, Overwrite overwrite, bool failOnError = true) { new MoveTask(file) { ToDir = toDir, Overwrite = overwrite, FailOnError = failOnError }.Execute(); }