static void Main(string[] args) { TextWriterTraceListener writer = new TextWriterTraceListener(System.Console.Out); Debug.Listeners.Add(writer); _base.Hello(); foreach (var item in args) { folder = item; if (!folder.EndsWith("\\")) { folder = @folder.Replace("\"", "\\"); } DirectoryInfo d = new DirectoryInfo(folder); FileInfo[] Files = d.GetFiles("*.resx").Where(x => !x.Name.Contains(".en.") && !x.Name.Contains(".es.")).ToArray(); foreach (FileInfo file in Files) { _base.Execute(Path.GetFileNameWithoutExtension(file.Name), folder, "Espanhol"); _base.Execute(Path.GetFileNameWithoutExtension(file.Name), folder, "Inglês"); } } _base.Hello(); }