chcp 437
rd /q/s  view
rd /q/s %1-midi
copy refer\*.*
lilypond --png %1.ly
lilypond --eps %1.ly
md view
md %1-midi
move *.pdf view\
move *.mid %1-midi\
latex %1-sheet.latex
dvips -t letterpaper -P pdf %1-sheet.dvi
call ps2pdf %1-sheet.ps
move %1-sheet.pdf view\
cd view
%1-sheet.pdf 
cd ..\%1-midi
%1.mid
cd ..\
erase *.ly *.ily *.texi *.latex *.aux *.log *.dvi *.ps *.eps *.png *.midi
dir /oe
