Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8475275
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:50:59+00:00 2026-06-10T17:50:59+00:00

I have added the reference Microsoft Scripting Runtime, and I have declared : using

  • 0

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 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T17:51:00+00:00Added an answer on June 10, 2026 at 5:51 pm

    You need to initialize FileSystemObject before using it.

    Try

    FileSystemObject fso = new FileSystemObject();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have MapPoint 2009 installed and added a reference to the Microsoft MapPoint 16.0
I have a strange situation where i have added a reference to Microsoft.SqlServer.Smo Microsoft.SqlServer.ConnectionInfo
I am using F# Interactive, and I have added the reference of FSharp.PowerPack.dll. When
In my C# project I have added a managed reference to Microsoft.ExtendedReflection. I can
I have added Microsoft.SqlServer.Management.Smo.dll reference to my project, but it still gives me the
I have asp.net web site. I added reference of Microsoft.Practices.EnterpriseLibrary.Logging.dll to the site. in
I have Silverligth Unit test Application (.net 4.0) and I've added reference to my
I have a WCF service running, I added a reference to the service by
Suppose I have three projects in my sln. (1) xyz.a{Class Lib}{no reference added} (2)
I have added an UIImageView as a subview in UIView , and then I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.