Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: converting using %path" and not getting double extension (Read 612 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

converting using %path" and not getting double extension

Hello,

I have been converting for a while my FLAC collection of music to AAC/m4a for the purpose of using it in a portable player.

Therefore once I get new FLAC files, I encode them using always the same specified folder as output and using %path%.

This ensures I get exactly the same folder structure as my original collection in my portable player.

The only minor thing is the generated files end up in ".flac.mp4" instead of ending in ".mp4".

What I then do is to use a utility named "advanced renamer".

My question is if anybody know of a simple way to still use %path% and at the same time get rid of the double extension.

Thanks a lot/Regards
Marco

Re: converting using %path" and not getting double extension

Reply #1
$directory_path(%path%)\%filename%

Re: converting using %path" and not getting double extension

Reply #2
$replace(%path%,.flac,)

Re: converting using %path" and not getting double extension

Reply #3
To also remove the drive letter (D:\) from creating an extra folder at the beginning -

Code: [Select]
$replace($directory_path(%path%),$left(%path%,3),)\%filename%

Re: converting using %path" and not getting double extension

Reply #4
To also remove the drive letter (D:\) from creating an extra folder at the beginning -

Code: [Select]
$replace($directory_path(%path%),$left(%path%,3),)\%filename%
Not at my fb2k now, but: I think the following chops off the first three characters more safely?
Code: [Select]
$right($directory_path(%path%),$sub($len($directory_path(%path%)),3))\%filename%


$replace(%path%,.flac,)
Artist ".flac" wonders where their self-titled single went?


Re: converting using %path" and not getting double extension

Reply #6
Thank you to everybody.
It works as I wanted now!

Cheers
Marco

 

Re: converting using %path" and not getting double extension

Reply #7
Artist ".flac" wonders where their self-titled single went?

/dev/null :-)
Since this is a Windows application ...
Windows has "NUL". Commands like "move" and "rename" and "copy" will refuse to write a file with that name. However, 7zfm can. And then you will "lose" it - except to similar utilities.

I have not tried to trick fb2k into writing to neither NUL nor for example NUL.flac or AUX.au

Also, dot files have no special status in Windows, but surely there are cross-platform applications that will avoid them.