Skip to content

Takkiiii/CommandLineWrapper

Repository files navigation

CommandLineWrapper

Command Line Wrapper Class

Usage

v executable = @"C:\Windows\System32\cmd.exe";
var path = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Desktop), "TestFile.txt");
var arg = $"/C copy /b nul  {path}";
var service = new CommandLineService(executable, arg, new CancellationTokenSource());
var timeout = TimeSpan.FromMilliseconds(500);
await service.ExecuteAsync(null, null, timeout);

About

Command Line Wrapper Class

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages