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:
<themes>
<themes>\batch.bat
<themes>\xbmctex.exe
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:
<themes>\vforvendetta\graphics *.png
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.
Quote:@echo off
set startdir=%cd%
set target=%1
chdir /d %target%
for %%* in (%target%) do set mydir=%%~n*
if not defined mydir set mydir=%cd:\=%
cd..
if exist %mydir%.xpr echo file %mydir%.xpr already exists, deleting old copy...
if exist %mydir%.xpr del /f /q %mydir%.xpr
echo.
xbmctex.exe -input %mydir% -quality max -output %mydir%.xpr
pause

![[Image: 1.png]](http://www.denness.net/scrobblersig/username/smuto/labelcolor/5176B5/trackcolor/3A4F6C/backgroundcolor/FFFFFF/backgroundtransparent/1.png)


![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help