|
Answer» Is there any way for me to display two echo result on the same LINE? Thanks !It depends on the CONTEXT of where ECHO is used. On the COMMAND line you can display defined environment variables (%var%) and literals. Within a batch file you can display passed parameters (%1 thru %9), defined environment variables (%var%), variables generated within the scope of a FOR statement (%%a thru %%z), and literals.
If you put two ECHO commands on the same line, the second ECHO will be treated as a literal.
You could always use DEBUG and create your own assembly language program for your own needs.
Hope this HELPS. I've just found an workaround to get the same result:
set /p dummy="this is the 1st line" echo "this is the 2nd line"
And you will get these 2 lines goes TOGETHER! I'm always happy when people find their own solutions. There is always more than one way to accomplish the same thing on a PC.
Good luck.
|