IPB

Welcome Guest ( Log In | Register )

> foobar2000 Development Forum Rules

This forum is for developer discussions only. If you have a problem / bug report / idea / feature request that isn't related to foobar2000 SDK, post it in an appropiate forum instead - tech support questions go to support forum, everything else goes to general forum.
All non-developer posts on this forum will be removed. Continued abuse of this forum will result in admin actions (warnings, account suspension).

get filename?
muzehyun
post Mar 24 2012, 09:31
Post #1





Group: Members
Posts: 13
Joined: 18-August 11
Member No.: 93119



I want to get filename when the song doesn't have any tags.

Closest thing I found is "handle->get_path()"
And it returns with directory "file://E:\Music\11-unknown_song.mp3"
I'm looking for a good helper method to extract only filename, without directory and file extension.

Thank you

sean
Go to the top of the page
+Quote Post

Posts in this topic
- muzehyun   get filename?   Mar 24 2012, 09:31
- - fbuser   Try pfc::string_filename(handle->get_path())   Mar 24 2012, 10:07
- - muzehyun   Perfect! Thanks!!   Mar 24 2012, 11:29


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 2nd September 2014 - 14:22