Click here to Skip to main content
16,017,333 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Is there a method to get the image name with the path but should not with the extension
Posted
Comments
Sergey Alexandrovich Kryukov 14-Aug-11 23:19pm    
Not quite clear. What do you mean the "image" here? Do you need to return just string? Why with no extension?
--SA
Jeremy Shin Woo 14-Aug-11 23:22pm    
because i want add some text before the extension. I think, u got the idea.

1 solution

No. You'd have to do a Path.Combine of the Path.GetDirectory and Path.GetFilenameWithoutExtension
 
Share this answer
 

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