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: copyto using %path% string duplicates extension (.mp3.mp3) (Read 455 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

copyto using %path% string duplicates extension (.mp3.mp3)

Trying to figure out how to fix this issue through Foobar2000 instead of using bulk rename utility.

When I copy files using File Operations-->Copy To and use the string %PATH% (which from the foobar syntax page says it should:
"%path%
The complete path, including the filename and extension."

The files returned all have duplicate extensions in their names. Example:
1.mp3
turns into
1.mp3.mp3

I like everything about this string except the duplication of extension. Any ideas why it's doing this and how to get it to stop doing this?

Thanks

Re: copyto using %path% string duplicates extension (.mp3.mp3)

Reply #1
Try this

Code: [Select]
$replace(%path%,\%filename_ext%,\%filename%)

Re: copyto using %path% string duplicates extension (.mp3.mp3)

Reply #2
You can also use
Code: [Select]
$directory_path(%path%)\%filename%