Exemplo n.º 1
0
        public void Execute()
        {
            var openFile = new OpenFileDialog {
                Filter = @"DupFinder.exe|DupFinder.exe"
            };
            var dialogResult = openFile.ShowDialog();

            if (dialogResult == DialogResult.OK)
            {
                var appConfig = new AppConfigurationImplementation();
                appConfig.DupFinderExe = openFile.FileName;
            }
        }
Exemplo n.º 2
0
        private string CreateDuplicateReportFile(string file)
        {
            var temp = Path.Combine(Environment.CurrentDirectory, Path.GetFileNameWithoutExtension(file) + ".xml");

            var config     = new AppConfigurationImplementation();
            var exe        = config.DupFinderExe;
            var parameters = $"-o:{temp} {file}";
            var process    = Process.Start(exe, parameters);

            process?.WaitForExit();

            return(temp);
        }