Re: foo_scheduler
Reply #589 –
I'm trying to find a way to run a batch file using the file name of my audio track... a different script for every track played.
For simplicity's sake I've copied the batch to the foobar program file as this is where the cmd opens when foobar runs it.
I've managed to make it work from the tracks context menu using the Run Services plugin launching: cmd /k "%filename%.bat" but I need this to be automatic. I thought I'd try Scheduler with the same line but this just opens the cmd window and reports that "%filename%.bat is not a valid command or batch file.
I have scoured these pages for anyone doing something similar but with no luck. Any help would be appreciated but I'm no programmer, I usually borrow from the work of others and fiddle till it does it for me.
foo_scheduler doesn't support titleformating so you cannot use it like that.
What you can do is also add the foo_run component
https://www.foobar2000.org/components/view/foo_runcmd
so you can add in foo_schedule an entry to select the Context menu Run service command you have created.
eg.
Run service command is named "cmdservice"
foobar2000.exe is located "C:\desktop\foobar2000\foobar2000.exe"
In scheduler you use the Launch application action.
The command would be:
"C:\desktop\foobar2000\foobar2000.exe" /runcmd-playlist="Run service/cmdservice"