| 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. 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% |
|