Click here to Skip to main content
15,900,378 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
I have a list which contains the name of all the required files for uploading.
Now, i want to know the extension name of each file in the list. How to do it.
Please help me out. Is there any inbuilt API which i can use.I searched the net, but found functions written for getting extension name. But i want to get the same from some inbuilt VB6 API(if exist).
Thanks
Dinesh
Posted
Updated 14-Oct-12 21:32pm
v2
Comments
Sergey Alexandrovich Kryukov 15-Oct-12 2:15am    
For your information, such concept as "file extension" is long gone. There are conventions to name files like *.*, but the end of the file name after '.' is not "extension".
Besides, could you tell us at least one reason for using VB6?
--SA
[no name] 15-Oct-12 2:18am    
We are supporting a legacy application written in VB.i need to select a specific set of files with extension "*.rcm" so, if u know any way , help me out.

Google is your friend: Be nice and visit him often. He can answer questions a lot more quickly than posting them here...

A very quick search using your subject as the search term gave over 700,000 hits, including this: VB6 - Getting a File's Extension[^]

In future, please try to do at least basic research yourself, and not waste your time or ours.
 
Share this answer
 
In built into VB6? No.

In built into the "Scripting.FileSystemObject" COM object? Yes[^].
 
Share this answer
 
v2
Comments
Richard Deeming 29-Jun-15 10:42am    
This question is from 2012! :)
Dave Kreskowiak 29-Jun-15 11:02am    
f***, I hate that! It was at the top of the list again. Must have been some spammer idiot that woke it up again.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900