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 3601078
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T20:34:34+00:00 2026-05-18T20:34:34+00:00

From an ASP.Net C# application I need to access the ‘Title’ property value from

  • 0

From an ASP.Net C# application I need to access the ‘Title’ property value from multiple (100+) files residing on the local file system.

e.g. Right click a file on your file system and select ‘Properties’. In the ‘Summary’ tab there is a ‘Title’ property along with ‘Subject’, ‘Category’ etc. properties. I am after the value residing in the ‘Title’ property.

Whilst developing the web application and testing using Cassini, I was able to extract the ‘Title’ property value using Shell32.dll

Folder folder = _shell.NameSpace(Path.GetDirectoryName(path));
FolderItem item = folder.ParseName(Path.GetFileName(path));
folder.GetDetailsOf(item, (int)eDetailColumns.Title);

The above code doesn’t work when running within IIS. The ‘folder’ object doesn’t contain any items.

I have read that the ASP.Net worker process does not have a running instance of explorer – thus no Shell causing my Shell32 code not to function correctly.

Is there another way I can extract the ‘Title’ property value from within an ASP.Net application?

Thanks in advance.

  • 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-05-18T20:34:35+00:00Added an answer on May 18, 2026 at 8:34 pm

    I just tested the following code running in IIS7 and I’m able to access the Title of a word document I created and various other properties belonging to it:

    Shell shell = new Shell();
    string path = Server.MapPath("~/Word.doc");
    
    Folder folder = shell.NameSpace(Path.GetDirectoryName(path));
    FolderItem folderItem = folder.ParseName(Path.GetFileName(path));
    
    for(int i = 0; i < 32; i++)
    {
      Response.Write(i + " : " +folder.GetDetailsOf(folderItem, i) + "<br/>");
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From an ASP.Net C# application I need to access the 'Title' property value from
I need to access, merge and parse my log files using my asp.net application
What steps I need to perform in order to convert asp.net 2 application from
I'm trying to profile SQL reporting services, used from ASP.NET application. In SQL profiler
I'm trying to write a log file from an ASP.NET application under IIS7, but
I'm trying to write a log file from an ASP.NET application under IIS7, but
I'm using Web Services Enhancements 3.0 to call a web-service from an ASP.NET application
Trying to include ThickBox (from http://jquery.com/demo/thickbox/ ) in an ASP.NET application. Visual Studio is
Is there a recommended way to bounce an asp.net application besides touching web.config from
I have a website running a basic ASP.NET application that is mostly used from

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.