COMANDOS DO DOS - HELP !!
Enviado: 15 Dez 2004 23:32
Amigos,
Se tiverem paciência e puderem me dizer o que significam os comandos abaixo, principalmente os grifados em vermelho, agradeço desde já.
SET LIB=..\LIB;C:\CLIPPER5\LIB
if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
ECHO Compiling...
if A%2 == A GOTO :END501
if %2 == 501 clipper %1 /n/a/v/w/i..\include /uFwStd.ch %3IF ERRORLEVEL 1 GOTO EXIT
if %2 == 501 GOTO :ENDCOMPILE
if A%3 == A GOTO :END501
if %3 == 501 clipper %1 /n/a/v/w/i..\include /uFwStd.ch %2IF ERRORLEVEL 1 GOTO EXIT
if %3 == 501 GOTO :ENDCOMPILE
:END501
c:\clipper5\bin\clipper %1 /n/a/v/w/i..\include;c:\clipper5\include %2 %3 > clip.log@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT
:ENDCOMPILE
ECHO
ECHO Linking...
c:\util\blinker fi %1 @..\include\fivewin.lnk
rem c:\util\link /se:2000 /NOE %1,,null, Five FiveC Objects WinApi Clipper Extend 501_520, ..\include\FiveWin.def
rem optlink %1,,nul, Five FiveC Objects WinApi Clipper Extend 501_520, ..\include\FiveWin.def
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
ECHO
rem Microsoft Resource Compiler
IF EXIST %1.rc RC -K %1
rem Borland Resource Compiler
rem IF EXIST %1.rc brc %1
rem Add low-level debugging symbolic info if present
IF EXIST %1.MAP TdMap.exe -W %1.MAP
rem Checks if running under Windows 95
..\tools\win95
IF ERRORLEVEL 1 %1
GOTO EXIT
:LINKERROR
PAUSE * Linking errors *
GOTO EXIT
:SINTAX
ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n .PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT
:NOEXIST
ECHO Not exist the specified PRG
:EXIT
Se tiverem paciência e puderem me dizer o que significam os comandos abaixo, principalmente os grifados em vermelho, agradeço desde já.
SET LIB=..\LIB;C:\CLIPPER5\LIB
if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST
ECHO Compiling...
if A%2 == A GOTO :END501
if %2 == 501 clipper %1 /n/a/v/w/i..\include /uFwStd.ch %3IF ERRORLEVEL 1 GOTO EXIT
if %2 == 501 GOTO :ENDCOMPILE
if A%3 == A GOTO :END501
if %3 == 501 clipper %1 /n/a/v/w/i..\include /uFwStd.ch %2IF ERRORLEVEL 1 GOTO EXIT
if %3 == 501 GOTO :ENDCOMPILE
:END501
c:\clipper5\bin\clipper %1 /n/a/v/w/i..\include;c:\clipper5\include %2 %3 > clip.log@type clip.log
IF ERRORLEVEL 1 PAUSE
IF ERRORLEVEL 1 GOTO EXIT
:ENDCOMPILE
ECHO
ECHO Linking...
c:\util\blinker fi %1 @..\include\fivewin.lnk
rem c:\util\link /se:2000 /NOE %1,,null, Five FiveC Objects WinApi Clipper Extend 501_520, ..\include\FiveWin.def
rem optlink %1,,nul, Five FiveC Objects WinApi Clipper Extend 501_520, ..\include\FiveWin.def
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built
ECHO
rem Microsoft Resource Compiler
IF EXIST %1.rc RC -K %1
rem Borland Resource Compiler
rem IF EXIST %1.rc brc %1
rem Add low-level debugging symbolic info if present
IF EXIST %1.MAP TdMap.exe -W %1.MAP
rem Checks if running under Windows 95
..\tools\win95
IF ERRORLEVEL 1 %1
GOTO EXIT
:LINKERROR
PAUSE * Linking errors *
GOTO EXIT
:SINTAX
ECHO SYNTAX: Build [Program] {-- No especifiques la extensi¢n .PRG
ECHO {-- Don't specify .PRG extension
GOTO EXIT
:NOEXIST
ECHO Not exist the specified PRG
:EXIT