get filename? |
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? |
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 |
|
|
|
Mar 24 2012, 10:07
Post
#2
|
|
|
Group: Developer Posts: 650 Joined: 26-September 07 Member No.: 47369 |
Try pfc::string_filename(handle->get_path())
|
|
|
|
Mar 24 2012, 11:29
Post
#3
|
|
|
Group: Members Posts: 13 Joined: 18-August 11 Member No.: 93119 |
Perfect! Thanks!!
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 20th June 2013 - 08:37 |