Exemplu sintaxa din linia de comanda:
Code: Select all
RUN_HTM fisier.htmCode: Select all
set H_FISHTM=DOC\hmarfa.htm
if "%OS%"=="Windows_NT" goto Windows
if "%OS%"=="Windows"    goto Windows
if "%OS%"=="LINUX"      goto Linux
if "%OS%"=="LINUX_TS"   goto Linux_TS
echo.
echo Variabila de sistem OS nu este definita sau
echo are o valoare necorespunzatoare !
echo.
pause    
goto :sf
:Windows
     RUN_HTM %H_FISHTM%
goto sf
:Linux
unix firefox file:///%H_SPRO%/DOC/hmarfa.htm &
goto sf
:Linux_TS
echo [RUN]                                >  TMP\HMENU.CMD
echo MODE=/MIN                            >> TMP\HMENU.CMD  
echo DIRECTORY=%H_SPRO%                   >> TMP\HMENU.CMD  
     echo EXE=RUN_HTM                         >> TMP\HMENU.CMD
echo PARAMETERS=%H_SPRO%\%H_FISHTM%   >> TMP\HMENU.CMD
copy TMP\HMENU.CMD %H_SCAT%
goto sf
:sfExemplul pentru rularea documentatiei hMARFA si RUN_HTM este atasat.