# foo\_run + mp3tag

**URL:** https://community.mp3tag.de/t/foo-run-mp3tag/11939
**Category:** Off-Topic
**Created:** [April 29, 2011, 10:22pm UTC](https://community.mp3tag.de/t/foo-run-mp3tag/11939 "2011-04-29T22:22:14Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jjforums](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/j/c67d28/32.png) [@jjforums](https://community.mp3tag.de/u/jjforums)
#### Post date: [April 29, 2011, 10:22pm UTC](https://community.mp3tag.de/t/foo-run-mp3tag/11939/1 "2011-04-29T22:22:14Z")

</div>

first i don't know if it's a mp3tag or foo\_run bug, but i put foo\_run to open mp3tag and it doesn't open, it work with other programs, only mp3tag doesn't open...

thanks.

edit: forget to say, in windows 7 home premium 32bits it work perfectly, but in windows 7 ultimate 64bits this problem happens.

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [April 30, 2011, 7:05am UTC](https://community.mp3tag.de/t/foo-run-mp3tag/11939/2 "2011-04-30T07:05:14Z")

</div>

Solved here:  
[http://www.hydrogenaudio.org/forums/index....showtopic=88370](http://www.hydrogenaudio.org/forums/index.php?showtopic=88370)

---

<div class="post-metadata">

### Author: ![Lestrad](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lestrad/32/347_2.png) [@Lestrad](https://community.mp3tag.de/u/Lestrad)
#### Post date: [September 10, 2012, 7:28pm UTC](https://community.mp3tag.de/t/foo-run-mp3tag/11939/3 "2012-09-10T19:28:02Z")

</div>

I had been struggling with this problem for a long time and thanks to this thread I tried escaping the parentheses in (x86) and it worked. Thanks!

However I still cannot get another Run Service command to run. It is one that invokes FooBar itself from a right click on a filename in the FooBar library pane and enqueues the entire directory the file is in. It worked fine for me under XP, but I can't get it to work under Windows 7 x64. The command line I am using is this:

"C:\Program Files '('x86')'\foobar2000\foobar2000.exe" /playnow "$replace(%\_path%,%\_filename\_ext%,)"

I have also tried using "$substr(%\_path%,0,$strrchr(%\_path%,''))" to get the path, but with no luck.

Any help would be appreciated. I really have spent a lot of time trying to get this to work because it comes in very handy.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [September 11, 2012, 4:20am UTC](https://community.mp3tag.de/t/foo-run-mp3tag/11939/4 "2012-09-11T04:20:24Z")

</div>

> [@Lestrad](#):
>
> ... I had been struggling with this problem for a long time ... Any help would be appreciated. ...

As I understand this thread, originally the open poster "jjforums" asked a question how to apply a command line to run Mp3tag.exe from within FB2K.  
_This problem has been solved._

What do you want to do?  
Do you want to apply a command line to run FB2K from within Mp3tag?  
Here is an example for a Mp3tag tool entry ...  
Name: foobar2000 Fix VBR header  
Path: \foobar2000.exe  
Parameter : **'/hide /runcmd-files="Utilities/Fix VBR MP3 header..." "'%\_path%'"'**  
For all selected files: yes

DD.20120911.0820.CEST

---

<div class="post-metadata">

### Author: ![Lestrad](https://community.mp3tag.de/user_avatar/community.mp3tag.de/lestrad/32/347_2.png) [@Lestrad](https://community.mp3tag.de/u/Lestrad)
#### Post date: [September 11, 2012, 6:04am UTC](https://community.mp3tag.de/t/foo-run-mp3tag/11939/5 "2012-09-11T06:04:31Z")

</div>

Thanks. Actually what I want to do is use a command line to enqueue the entire directory in Foobar by right-clicking on a single song while I'm already in Foobar, in the Library view. In fact I just realized that the command I posted actually works (once the parentheses are escaped). The problem is that by default, Foobar does not display the file queue, and I had it set not to begin play automatically. (I use Foobar for tagging as well as simply for listening.) So the files were being enqueued, but I couldn't see them. Then I found the Queue Contents Editor plug-in, and now when I enqueue files in Foobar I can actually see them.

I don't know how I managed to set up Foobar NOT to show what files it's playing when they're not in a playlist, but that was my problem - plus the fact that the parentheses (which some genius at Micro$oft decided to include in the name of the default x86 Program Files folder for Windows 7) needed to be escaped - which I learned about thanks to you guys! Thanks again!
