S
Stu Smith
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)
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)