Exemplo n.º 1
0
 public ExecTask(FilePath program)
 {
     Program = program;
     Args = string.Empty;
 }
Exemplo n.º 2
0
 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();
 }
Exemplo n.º 3
0
 public static void Rename(FilePath file, FilePath toFile, Overwrite overwrite)
 {
     new MoveTask(file) { ToFile = toFile, Overwrite = overwrite }.Execute();
 }
Exemplo n.º 4
0
 public static void CopyToFile(FilePath file, FilePath toFile)
 {
     new CopyTask(file) { ToFile = toFile }.Execute();
 }
Exemplo n.º 5
0
 public static void Move(FilePath file, DirectoryPath toDir, Overwrite overwrite, bool failOnError = true)
 {
     new MoveTask(file) { ToDir = toDir, Overwrite = overwrite, FailOnError = failOnError }.Execute();
 }