Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read File Properties

Status
Not open for further replies.

stnkyminky

Programmer
Oct 15, 2001
476
US
I would like to loop through a folder and extract the 'Title' attrib from all files within that folder.


Right click on a file and select properties. Click on the Summary tab.

Scott
Programmer Analyst
<{{><
 
Hi,
I am new to vb.net.
every day i have to build a control file of what files are in a directory.
there is a system function. I don't have it with me. I think it is
getfiles(&quot;C:\*.MDB&quot;) It will make an array of all the files you want.
Hope this helps.
Marcsorg
 
Check out the Path Class, it will be a lot of help.

Becca

Somtimes, the easy answer is the hardest to find. :)
 
I apologize for not being clear. I am able to retrieve the files/folders in a given directory. However, I am not able to get the Title attribute from the file.

Thanks to everyone for your input.

Scott
Programmer Analyst
<{{><
 
Files don't have titles. Files have names.
Word docs, etc. have titles. Is that what you're asking?

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
If you right click on a file and select properties. Click on the Summary tab you should see fields that someone can populate to describe the file. One of those fields is title.

I've found that in WinXP and probably Win2k, that All files have these attributes. I've not been able to find anything in the .Net framework that will allow me to retrieve these values. I'm assuming I'll need to interface with a dll but I'm not sure.

Scott
Programmer Analyst
<{{><
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top