1.

Solve : echo without newline?

Answer»

If you have ever wanted to do an echo in a BATCH file without forcing a new line, then you might like to try this little util that I wrote myself, called echonr.

usage echonr string

Quote

G:\>(
More? echonr "HELLO "
More? echo world
More? )
hello world

G:\>(
More? echonr "hello world "
More? echo %date%
More? )
hello world 06/11/2007

G:\>(
More? echonr hello world today is
More? echonr " "
More? echonr %date%
More? echonr " "
More? echonr "and the time is "
More? echo %time%
More? )
hello world today is 06/11/2007 and the time is 19:19:30.93


Written in FreeBasic & compiled using FreeBasic compiler 0.16 for Win32

Source code (!):

Quote
print command$;

If somebody would like to try compiling it in QuickBasic, we might find out if it works in DOS.






[getting disk space - attachment DELETED by ADMIN]


Discussion

No Comment Found