I have written a Windows batch file that reads a list on ISS files that need to be compiled. So far, it works fine.
My question is, how do I pipe messages (good or bad) to a report file? I tried /LOG=rpt.txt and was not successful.
Is there a command line switch that I can use for this purpose?
Thank you in advance for any assistance.
Kenneth Ives
My code:
SET INNOCMPL="C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
…
…
:: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
:: Here is where the actual compiles are performed.
::
:: Use 'FOR /F' loop to loop thru the list of file names
:: - Test the first char to see IF is a semicolon 'eol=;'.
:: IF so, it is a comment line which does not need to be processed.
:: - Read the file names one line at a time
:: - Increment counter '/A' means add. When using arithmetic
:: variables, use '!' instead of '%'
:: - Display a count and file name on the screen
:: - Perform compile and write a remark to a report file
:: - Loop until finished
::
:: BTW. IF there are any spaces in path\filename,
:: use 'usebackq'. All path\filenames should be
:: encapsulated with double quotes.
::
:: BTW. Arithmetic variables use '!' instead of '%'
::
:: BTW. Recommend ' ) ELSE ( ' statement always be on a
:: separate line. Less problems and easier to debug.
:: +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
FOR /F "eol=; usebackq tokens=*" %%f IN (%CMPLIST%) DO (
SET /A CNT+=1
IF !CNT! LSS 10 (
SET NBR=0!CNT!
) ELSE (
SET NBR=!CNT!
)
ECHO !NBR! %%f
:: %INNOCMPL% /Q %%f /LOG=%RPTFILE% ß Did not work
%INNOCMPL% /Q %%f ß Did work
)
I have written a Windows batch file that reads a list on ISS files that need to be compiled. So far, it works fine.
My question is, how do I pipe messages (good or bad) to a report file? I tried /LOG=rpt.txt and was not successful.
Is there a command line switch that I can use for this purpose?
Here is what I get when piping the results:
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/innosetup/d047978f-1e89-4824-94da-faccd48f41b0n%40googlegroups.com.
Why am I receiving this data, starting with "Usage: iscc", on both good and bad compiles?
Is there any way to get a message that says "No errors" or "Good compile"?