Help - Search - Members - Calendar
Full Version: run services help
Hydrogenaudio Forums > Hosted Forums > foobar2000 > 3rd Party Plugins - (fb2k)
nightfishing
I am using

$replace(%path%,%filename_ext%,info.)txt

to call on info.txt files and would like to call on EITHER info.txt of info.jpg (whichever is present).

Is this possible?

Thanks.

Purple Monkey
You may be able to do it with a windows batch file:
CODE
IF EXIST "%~dp1\info.txt" goto text
start "%~dp1\info.jpg"
goto end
:text
start "%~dp1\info.txt"
:end

This one prioritises the text file.

Then call the batch file with
CODE
runinfo.bat "$replace(%path%,%filename_ext%,)"


Not checked the batch script but it should work.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.