/*Make sure to add using System.Linq; */ string[] printer = {"jupiter", "neptune", "pangea", "mercury", "sonic"}; if(printer.Contains("jupiter")) { Process.Start("BLAH BLAH CODE TO ADD PRINTER VIA WINDOWS EXEC""); }