1.

Solve : Passing a blank line to a file?

Answer»

Hello all.

I have a requirement to PASS parameters to a program. I am building a parameter file on the fly before running the program, the problem is some of the parameters can be blank and I can't see to echo a blank.

Any Ideas?

Here is what I am doing:

REM Program Types                                                                                
> j582v02.bat echo KEN
>>j582v02.bat echo
>>j582v02.bat echo
call C:\Progra~1\Claims\bat\qzc.bat V60 SYR002B j582v02.bat
if %ERRORLEVEL% GTR 0 (                                                                          
  > ERROR.dat ECHO SYR002B %ERRORLEVEL%                                                          
  goto EOF                                                                                        
)                                                                                                

The result comes out like this:

KEN
ECHO is off.
ECHO is off.
echo.Thanks for the response.

A little more information WOULD have been nice....lol.

But I GOT the message. I almost didn't see the period at first.
Still not SURE why this works, but it does.

Thanks again.



Discussion

No Comment Found