Jump to content


Photo

[WIN]DOS: no OR/AND ???


This topic has been archived. This means that you cannot reply to this topic.
13 replies to this topic

#1 trallallero

trallallero

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 16188 posts

Posted 16 May 2011 - 09:54

Sto, mio malgrado, nel fantastico mondo del MS Dos ( :asd: ) e dovrei fare un controllo che il parametro immesso sia "all" OR "jrtplib" per non scrivere 2 volte lo stesso codice (come faccio in questa funzione).

rem ##########################

rem #  START internal autobuild

:internalAutobuild

  

   if [%param%] EQU [all] (

  

    cd %workingPath%\%debugDir%

    echo Building debug of rtp wrapper ... 

    devenv /build debug RTP_WRAPPER.sln

  

    cd %workingPath%\%releaseDir%

    echo Building release of speex and pcm wrapper ... 

    devenv /build release RTP_WRAPPER.sln

  )

  

   if [%param%] EQU [jrtplib] (

  

    cd %workingPath%\%debugDir%

    echo Building debug of rtp wrapper ... 

    devenv /build debug RTP_WRAPPER.sln

  

    cd %workingPath%\%releaseDir%

    echo Building release of speex and pcm wrapper ... 

    devenv /build release RTP_WRAPPER.sln

  )

  

  goto :INTERNAL_FUNC_EOF

rem #  END internal autobuild 

rem ##########################


Come minkia si fa ? non riesco a trovare niente in rete.
Ho trovato questa soluzione ma è a pagamento :alone:
Don't worry, faith will come soon, like a recall but,
if you can't wait, just stop thinking at all 

 


#2 Nex

Nex

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 19500 posts

Posted 16 May 2011 - 10:42

if %1==all
goto :etichetta1
if %1==jrtplib
goto :etichetta2
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#3 trallallero

trallallero

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 16188 posts

Posted 16 May 2011 - 11:25

if %1==all
goto :etichetta1
if %1==jrtplib
goto :etichetta2

Quindi non ci sono OR/AND ?
Don't worry, faith will come soon, like a recall but,
if you can't wait, just stop thinking at all 

 


#4 Nex

Nex

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 19500 posts

Posted 16 May 2011 - 11:26

No, devi usare i GOTO per sopperire.
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#5 trallallero

trallallero

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 16188 posts

Posted 16 May 2011 - 11:27

No, devi usare i GOTO per sopperire.

Ok, grazie.
Don't worry, faith will come soon, like a recall but,
if you can't wait, just stop thinking at all 

 


#6 Nex

Nex

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 19500 posts

Posted 16 May 2011 - 11:29

P.S. potrebbe esserti utile: http://academic.ever... ... /batch.htm
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#7 trallallero

trallallero

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 16188 posts

Posted 16 May 2011 - 11:31

Beh si, male non fa, grazie.
Don't worry, faith will come soon, like a recall but,
if you can't wait, just stop thinking at all 

 


#8 trallallero

trallallero

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 16188 posts

Posted 16 May 2011 - 09:54

Sto, mio malgrado, nel fantastico mondo del MS Dos ( :better: ) e dovrei fare un controllo che il parametro immesso sia "all" OR "jrtplib" per non scrivere 2 volte lo stesso codice (come faccio in questa funzione).

rem ##########################

rem #  START internal autobuild

:internalAutobuild

  

   if [%param%] EQU [all] (

  

    cd %workingPath%\%debugDir%

    echo Building debug of rtp wrapper ... 

    devenv /build debug RTP_WRAPPER.sln

  

    cd %workingPath%\%releaseDir%

    echo Building release of speex and pcm wrapper ... 

    devenv /build release RTP_WRAPPER.sln

  )

  

   if [%param%] EQU [jrtplib] (

  

    cd %workingPath%\%debugDir%

    echo Building debug of rtp wrapper ... 

    devenv /build debug RTP_WRAPPER.sln

  

    cd %workingPath%\%releaseDir%

    echo Building release of speex and pcm wrapper ... 

    devenv /build release RTP_WRAPPER.sln

  )

  

  goto :INTERNAL_FUNC_EOF

rem #  END internal autobuild 

rem ##########################


Come minkia si fa ? non riesco a trovare niente in rete.
Ho trovato questa soluzione ma è a pagamento :better:
Don't worry, faith will come soon, like a recall but,
if you can't wait, just stop thinking at all 

 


#9 Nex

Nex

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 19500 posts

Posted 16 May 2011 - 10:42

if %1==all
goto :etichetta1
if %1==jrtplib
goto :etichetta2
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#10 trallallero

trallallero

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 16188 posts

Posted 16 May 2011 - 11:25

if %1==all
goto :etichetta1
if %1==jrtplib
goto :etichetta2

Quindi non ci sono OR/AND ?
Don't worry, faith will come soon, like a recall but,
if you can't wait, just stop thinking at all 

 


#11 Nex

Nex

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 19500 posts

Posted 16 May 2011 - 11:26

No, devi usare i GOTO per sopperire.
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#12 trallallero

trallallero

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 16188 posts

Posted 16 May 2011 - 11:27

No, devi usare i GOTO per sopperire.

Ok, grazie.
Don't worry, faith will come soon, like a recall but,
if you can't wait, just stop thinking at all 

 


#13 Nex

Nex

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 19500 posts

Posted 16 May 2011 - 11:29

P.S. potrebbe esserti utile: http://academic.ever... ... /batch.htm
Then I went to my pretty rose tree / To tend her by day and by night / But my rose turned away with jealousy / And her thorns were my only delight...

#14 trallallero

trallallero

    Schiavo

  • Membri
  • PipPipPipPipPipPipPip
  • 16188 posts

Posted 16 May 2011 - 11:31

Beh si, male non fa, grazie.
Don't worry, faith will come soon, like a recall but,
if you can't wait, just stop thinking at all