Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Based on your comments it seems that you are unfamiliar with <strike>object-oriented programming</strike> namespaces and classes. Let's break it down.</p> <p><code>Process</code> is a class, part of the .NET framework. <code>Process</code> has has a collection of methods, some of them being <code>static</code> methods. <code>Start</code> is one of those static methods. There are two pieces necessary in order for you to use <code>Process.Start</code>:</p> <ol> <li>The compiler needs to know what <code>Process</code> is. You can give that info to the compiler by adding <code>using System.Diagnostics;</code> to the top of your class file. This tells the compiler to look for classes in the <code>System.Diagnostics</code> namespace, which is where <code>Process</code> lives.</li> <li>You need to explicitly tell the compiler that you're calling a method named <code>Start</code> <em>that is part of the process class</em>. You can do this by using <code>Process.Start()</code>. Or in your case, <code>Process.Start("Command to be executed");</code></li> </ol> <p>There are two reasons why you CANNOT just type <code>start("Command to be executed")</code>:</p> <ol> <li><code>start</code>, with a lowercase "s", is not the same as <code>Start</code> with an uppercase "S". C# is a case-sensitive language.</li> <li>If you don't prepend your method call with a particular class name, the compiler looks in your own class for that method, and when it doesn't find one, it tells you about it.</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload