1.

Solve : How Create Formatted Output?

Answer»

How does one created a formatted output in DOS, that is, maintain the spaces and columns?  Not even sure if it is possible.An example of what you are trying to do and what code you have tried so far would probably help us help you.He's gonna GET an A+ in class at this rate... I discovered what the issue is, it seems to be a notepad thing.  Notepad is nicely formatting the alignment of the "echo" so I would think it is properly aligned.  Now when I tried to paste the code here, it is all misaligned.  So I guess my question is, is there a way to output a formatted report without using echo statements in DOS or some third-party product or writing a program to produce what I want?BB code tags should RETAIN any formatting but without seeing what your existing code is or what your input looks like and what you want the output to look like then this really becomes an exercise in futility.

When people ask for information to help you with a task it would be helpful to provide that information. If they have to ask two or three times then they are just not going to help you.3 unrelated questions in 2 days = homework...Not homework at all, I wish I was that young to go back to school :-)Well I am tapping out on this thread.  Someone else can take over. Quote from: et_phonehome_2 on June 12, 2014, 06:50:39 PM

Not homework at all, I wish I was that young to go back to school :-)

You're not old enough to know a proportional font from a monospaced font.I always want things to line up...  The new code will line things up...

Original code:
Code: [Select]echo [USAGE]: %~1 arg1 arg2 arg3 arg4 arg5 arg6                            >> %MAILLOG%
echo          arg1 : IDF               : %IDF%                            >> %MAILLOG%
echo          arg2 : PARTNER           : %PART%                            >> %MAILLOG%
echo          arg3 : PARM              : %PARM%                            >> %MAILLOG%
echo          arg4 : FNAME             : %FNAME%                    >> %MAILLOG%
echo          arg5 : FILENAME          : %FILENAME%                        >> %MAILLOG%
echo          arg6 : FACTION [Y^|N]    : %FACTION%                         >> %MAILLOG%

New Code:
Code: [Select]echo [USAGE]: %~1 arg1 arg2 arg3 arg4 arg5 arg6                            >> %MAILLOG%
echo          arg1 : IDF.....................: %IDF%                    >> %MAILLOG%
echo          arg2 : PARTNER............: %PART%                    >> %MAILLOG%
echo          arg3 : PARM.................: %PARM%                    >> %MAILLOG%
echo          arg4 : FNAME...............: %FNAME%                    >> %MAILLOG%
echo          arg5 : FILENAME...........: %FILENAME%                       >> %MAILLOG%
echo          arg6 : FACTION [Y^|N]....: %FACTION%                         >> %MAILLOG%


Discussion

No Comment Found