Добрый день! Подскажите пожалуйста как открыт файла c пробелoм, в этом скрипте !
| Код | @echo off : : live4.bat - LaTeX engine : blive4.bat - Bibtex : amstex.bat - AMSTeX engine : tex4.bat - TeX engine
set texfile=%~n1.tex set shortfile=%~n1 set latexcc=live4.bat -halt-on-error set dvipscc=live4ps.bat set bibtexcc=blive4 set compilingnumber=2
: Testing 1st compiler call %latexcc% %texfile% :echo %errorlevel% if %errorlevel% equ 0 set cc=%latexcc% & goto cclabel
goto badend
: Compiling. Making DVI file :cclabel : Run Bibtex if .bib file exist for %%i in (*.bib) do call %bibtexcc% %shortfile% for /l %%i in (1,1,%compilingnumber%) do call %cc% %texfile%
: Making PS file call "%dvipscc%" "%shortfile%.dvi"
goto happyend
:badend echo Bad end ... pause goto exit
:happyend echo Happy end ...
:exit
|
|