title: FSO in C# .net 2010
body: <p>I have added the reference "Microsoft Scripting Runtime", and I have declared :</p>
  
  <pre><code>using Scripting;
  </code></pre>
  
  <p>Then, I am trying to test it, I made a function :</p>
  
  <pre><code>private void showmessage(string path)
  {
  FileSystemObject fso;
  label1.Text = fso.GetFileName(path); 
  }
  </code></pre>
  
  <p>I am only testing if it works or not, but I got an error "use of an unassigned local variable"</p>
  
  <p>Sorry if it's like silly, and please help me to solve this. God Bless You :)</p>