Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication3
- {
- class Program
- {
- static void Main(string[] args)
- {
- List<string> files = new List<string>();
- string input = Console.ReadLine();
- while (input != "-")
- {
- files.Add(input);
- input = Console.ReadLine();
- }
- foreach (string file in files)
- {
- string src = @"C:\Users\עידן\Desktop\תיקיה חדשה\IMG_" + file + ".JPG";
- string des = @"C:\Users\עידן\Desktop\תיקיה חדשה (2)\IMG_" + file + ".JPG";
- if (!System.IO.File.Exists(src))
- {
- Console.WriteLine("{0} could not be found.", src);
- continue;
- }
- System.IO.File.Copy(src, des, true);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement