0

Is it do-able to write a C# program that will open up another piece of software, and make it do something? For example, could I open up Audacity and play a tone using a C# program? I'm looking to automate a couple of tasks, and this would be necessary.

Sorry I don't have any code, but I'm not sure where to start with this.

Swam
  • 49
  • 2
  • 9
  • 1
    Use [Process](https://msdn.microsoft.com/en-us/library/system.diagnostics.process(v=vs.110).aspx) – CodeNotFound May 31 '18 at 14:32
  • 1
    Yes it is. If Audacity has APIs to interact with it then that is great, otherwise you have to use automation tools. – Blake Thingstad May 31 '18 at 14:32
  • 2
    Possible duplicate of [How to run external program via a C# program?](https://stackoverflow.com/questions/3173775/how-to-run-external-program-via-a-c-sharp-program) – CodeNotFound May 31 '18 at 14:34

1 Answers1

0

Process.Start("Location Of File.exe");

(Make sure you use the System.Diagnostics library)

KUDUS
  • 51
  • 1
  • 3