title: Two things; console app run without .exe and args (C# console app)
body: <p>Hi I would like to make my self able to maybe define my app into CMD by that I can type program instead of program.exe kind of like how ping works for example.</p>
  
  <p>I also need help with arguments.
  The point of my app is to send a get request to a local server evaling PHP fetching a result from it so I can easy quick debug things and calculate things ect from CMD.</p>
  
  <p>So for example I have to do.</p>
  
  <pre><code>W:\Users\example&gt;e.exe
  echo "example";
  .....
  
  example
  
  
  W:\Users\example&gt;
  </code></pre>
  
  <p>Tow things with the above are very annoying. I need to enter e.exe and THAN I need to enter the code to eval :-/</p>
  
  <p>How could I make it so I could just do</p>
  
  <pre><code>W:\Users\example&gt;e echo "example";
  .....
  
  example
  
  
  W:\Users\example
  </code></pre>
  
  <p>I really would like to get this working to make use faster + more simple ! this is a programmers way to calculating math :P</p>
  
  <p>EDIT:
  Below is the code;</p>
  
  <pre><code>static void Main(string[] args)
  {
      WebClient client = new WebClient();
      Console.WriteLine("...");
      string input = Console.ReadLine();
      string php = client.DownloadString("http://192.168.1.50/test.php?exec="+input);
      Console.WriteLine(".....");
      Console.WriteLine("");
      Console.WriteLine(php);
      Console.WriteLine("");
  }
  </code></pre>
  
  <p>I've tried to do "+arg[0] but does nothing at start :?</p>