C# program to run ccextractor on a directory of files
using System; | |
using System.Diagnostics; | |
using System.IO; | |
namespace ExtractorRunner | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var directory_to_import = "D:/Data/clients/RodPaddock/CCExtractor/"; | |
var extractor_exe_path = "D:/Data/clients/RodPaddock/CCExtractor/ccextractorwin"; | |
foreach (var fileName in Directory.GetFiles(directory_to_import,"*.mpg")) | |
{ | |
Console.WriteLine(fileName); | |
var process = new Process() | |
{ | |
StartInfo = new ProcessStartInfo | |
{ | |
FileName = $"{extractor_exe_path}", | |
Arguments = $"{fileName}", | |
UseShellExecute = true, | |
} | |
}; | |
process.Start(); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment