you put the bat file & the xbmctex.exe together in a directory. you can then drag subdirectories in that location onto the bat file and xbmctex will build xprs with the same name as those directories.
example of usage:
i have a "themes" folder where i put the stuff i'm working on.
directory structure looks like this:
say i'm working on a v for vendetta theme. i would put all the files i want that theme to include in a subdirectory:
then to build the xpr, i simply drag & drop that directory onto the bat file and it'll spit out a vforvendetta.xpr file in the same directory xbmctex.exe is located in.
it has a fork which looks for and deletes the file to be created if it already exists. it's intended to make developing themes a little easier.
chdir /d %target%
for %%* in (%target%) do set mydir=%%~n*
if not defined mydir set mydir=%cd:\=%
if exist %mydir%.xpr echo file %mydir%.xpr already exists, deleting old copy...
if exist %mydir%.xpr del /f /q %mydir%.xpr
xbmctex.exe -input %mydir% -quality max -output %mydir%.xpr