Line continuation if for...do scripts
From: Stu Smith (anonymous_at_discussions.microsoft.com)
Date: 04/27/04
- Next message: Paul R. Sadowski: "Re: Line continuation if for...do scripts"
- Previous message: Matthias Tacke: "Re: Sending email"
- Next in thread: Paul R. Sadowski: "Re: Line continuation if for...do scripts"
- Reply: Paul R. Sadowski: "Re: Line continuation if for...do scripts"
- Reply: Matthias Tacke: "Re: Line continuation if for...do scripts"
- Messages sorted by: [ date ] [ thread ]
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)
- Next message: Paul R. Sadowski: "Re: Line continuation if for...do scripts"
- Previous message: Matthias Tacke: "Re: Sending email"
- Next in thread: Paul R. Sadowski: "Re: Line continuation if for...do scripts"
- Reply: Paul R. Sadowski: "Re: Line continuation if for...do scripts"
- Reply: Matthias Tacke: "Re: Line continuation if for...do scripts"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|