Example #1
0
        private void Button2_Click(object sender, EventArgs e)
        {
            var myPath = @"C:\Program Files (x86)\Java\jre1.8.0_231\bin";

            System.Diagnostics.ProcessStartInfo proc = new System.Diagnostics.ProcessStartInfo();
            proc.FileName  = @"C:\windows\system32\cmd.exe";
            proc.Arguments = "/c cd " + myPath + " && java code.SimpleRead";
            Clipboard.SetText("/c cd " + myPath + " && java code.SimpleRead");
            System.Diagnostics.Process.Start(proc);
            ImageUpdater.Start();
        }