Line continuation if for...do scripts

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Stu Smith (anonymous_at_discussions.microsoft.com)
Date: 04/27/04


Date: Tue, 27 Apr 2004 11:02:59 -0700

Hey All. I have a pretty complex script that contains a
bunch of for...do loops. Is there a way to split the
lines to make it more readable? The example below is just
one line of this monster. It basically takes all the
matching files in a directory and compiles them. If the
executable is generated it increments a counter and if a
flag is set writes to a log otherwise it writes a fail
message to the log.

for %%F in (%LocalFormsSrcDir%\bas*.pll) do start /w
C:\orant\bin\ifcmp60 module_type=LIBRARY
module_access=FILE batch=YES window_state=MINIMIZE userid=%
ProdDBConnectString% module=%LocalFormsSrcDir%\%%~nxF
output_file=%LocalBinDir%\%%~nF && if exist %LocalBinDir%\%
%~nF.plx (set /A NumPllCompiled=NumPllCompiled + 1 & if %
FullLoggingFlag% == Yes echo Compiled %%F ... >> %
LogFile%.log) else (echo %%F Failed!! >> %LogFile%.log)



Relevant Pages

  • Re: aes decrypt encrypt
    ... Hey, go realize a bunch! ... it awards a rehearsal too ... effective over her silly tour. ...
    (sci.crypt)
  • Re: Equal time
    ... I'm all for teaching it in schools so long as all the players get equal ... air-time. ... bunch of grapes and dates in a jug and let them sit for a month, ... "Hey, I got an idea. ...
    (misc.writing)
  • Re: N9OGLs future ???
    ... > but hey I bunch of cry-baby licensed CB operators who think they ... subject matter of DIRECT INTEREST to the amateur service. ... > THE N9OGL SHOW SUCKS 14.321 ...
    (rec.radio.amateur.misc)
  • Re: Create controls at runtime
    ... Hey, ... TonyMast wrote: ... Very strange why it wasn't working in the first form but when I created another it did. ... I wanted to use some loops to create the objects. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Get a life!
    ... >> Hey guys! ... Lets all relax and have a CIGAR!!!! ... > You are kidding, right? ... This bunch would rather waste bandwidth on ...
    (alt.smokers.cigars)