.


:




:

































 

 

 

 


, , , . , - , .

. . , %1, %2, %3 .. , .

, , . help. .

@echo off

 

rem ,

rem

help %1 > help.tmp

 

rem

notepad help.tmp

, show-help.bat. , , dir, : show-help.bat dir

, , , :

rem

 

rem ,

md %1

 

rem ,

rem

help %2 > %1\%2.help

 

, , ? , , . , ? . : , , %2 . help .help. , , md ( ), , md .

, , . , - .

 

. set

. set. .

rem - CHM

set help_compiler= C:\Program Files\HTML Help Workshop\hhc.exe

, .

rem - CHM

set help_compiler= C:\Program Files\HTML Help Workshop\hhc.exe

 

rem - ""

set store_hpj=Z:\store.hpj

 

rem - ""

set sales_hpj=Z:\sales.hpj

 

rem -

%help_compiler% %store_hpj%

%help_compiler% %sales_hpj%

, .

-, (, -) .

-, , .

, , . , , , , , .

: ( - ), , .

:

rem -

set help_compiler=" C:\Program Files\HTML Help Workshop\hhc.exe "

 

rem , -

set project_path=Z:\<_>\help

rem ,

rem

%help_compiler% %project_path%\%1.hpj

 

. if goto

if , . ?

, . , , , , , . , , , . , , - , .

-. . : . , goto, . compile. , , , , goto . , . , finish.

@echo off

 

rem ,

if not "%1"=="" goto compile

 

rem ,

echo -

rem

rem finish

goto finish

 

rem compile

:compile

 

rem

 

rem -

set help_compiler="c:\Program Files\HTML Help Workshop\hhc.exe"

 

rem , -

set project_path=Z:\<_>\help

 

rem ,

rem

%help_compiler% %project_path%\%1.hpj

 

rem finish

:finish

 

.

-, , . , . MS-DOS exist. : if exist %1.hpj goto compile.

-, goto (.. ) . , , , . . , , , ifelse. : , if, , else.

@echo off

 

rem ,

if not exist %1.hpj (

 

rem ,

echo - .

) else (

 

rem

 

rem -

set help_compiler=" C:\Program Files\HTML Help Workshop\hhc.exe"

 

rem , -

set project_path=Z:\<_>\help

 

rem ,

rem

%help_compiler% %project_path%\%1.hpj

 

)

. help-files (, -). , ( , , -, : ?), bak. help-files.bak , ( , ).

if exist help-files.bak rd help-files.bak

if exist help-files ren help-files help-files.bak

md help-files

 



<== | ==>
- |
:


: 2018-10-18; !; : 1083 |


:

:

,
==> ...

1727 - | 1595 -


© 2015-2024 lektsii.org - -

: 0.014 .