Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате
Форум программистов > Perl: Общие вопросы > Название c пробелoм


Автор: viktorijakup 20.5.2009, 09:46
Добрый день!
Подскажите пожалуйста как открыт файла 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

Автор: DaemonSuw 20.5.2009, 10:44
А где код перл? это .bat файл что ли?

Автор: shamber 20.5.2009, 11:39
DaemonSuw, подобная мысля меня тоже посетила smile

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)