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