First item use:
>ConsOut.txt
the other items must be:
>>ConsOut.txt
The single > crates a file
The double >> adds to a file
Awesome!
Its been years since i fiddled with Dos and cmd.exe .
Anyways, I came up with a clutzy solution:
~myForm-compile-1.bat :
DEL ~myForm-ConsOut.txt /P
~myForm-compile-2.bat > ~myForm-ConsOut.txt
~myForm-compile-2.bat :
echo Compile myForm.d
setlocal EnableDelayedExpansion
set "DFL_LIB=C:\D\dmd2\windows\Dfl\import\dfl\win32\dfl\dfl.lib"
set "DFL_IMPORT=C:\D\dmd2\windows\Dfl\import\dfl\win32\"
dmd -I %DFL_IMPORT% %DFL_LIB% myForm.d
~myForm-ConsOut.txt :
C:\D\dmd2\windows\Entice\vmPrograms\myForm>echo Compile myForm.d
Compile myForm.d
C:\D\dmd2\windows\Entice\vmPrograms\myForm>setlocal EnableDelayedExpansion
C:\D\dmd2\windows\Entice\vmPrograms\myForm>set "DFL_LIB=C:\D\dmd2\windows\Dfl\import\dfl\win32\dfl\dfl.lib"
C:\D\dmd2\windows\Entice\vmPrograms\myForm>set "DFL_IMPORT=C:\D\dmd2\windows\Dfl\import\dfl\win32\"
C:\D\dmd2\windows\Entice\vmPrograms\myForm>dmd -I C:\D\dmd2\windows\Dfl\import\dfl\win32\ C:\D\dmd2\windows\Dfl\import\dfl\win32\dfl\dfl.lib myForm.d
Error: invalid file name 'C:\D\dmd2\windows\Dfl\import\dfl\win32\'
Thanks a lot for your quick help...Vernon