msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

keep output from 2 commands on the same line

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS
Author Message
JSt



Joined: 04 Oct 2007
Posts: 1

PostPosted: Fri Aug 31, 2007 3:56 am    Post subject: keep output from 2 commands on the same line Reply with quote

hi all

is there a way to make a batch (cmd or bat) shell script using two
commands write to the same line?


example


command1 >> outputfile.txt
command2 >> outputfile.txt

assuming that the putput for command 1 is "HELLO"
and the output for command2 is "WORLD"

my output file would look like:

HELLO
WORLD


the question is is there a way to have the two commands output to the
same line in the file so that it reads

HELLO WORLD



thanks

Archived from group: microsoft>public>vb>dos
Back to top
View user's profile Send private message
H-Man



Joined: 04 Oct 2007
Posts: 23

PostPosted: Fri Aug 31, 2007 3:13 pm    Post subject: Re: keep output from 2 commands on the same line Reply with quote

On Thu, 30 Aug 2007 23:56:06 +0200, JSt wrote:

> hi all
>
> is there a way to make a batch (cmd or bat) shell script using two
> commands write to the same line?
>

Probably, but I need you to answer a question for me first. What exactly
does this have to do with VB DOS, or VB at all for that matter?


--
HK

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
Print output to Console Hi a simple question here. I know "Command" is for us to read something from DOS. How about if I want to print some output to the console? Thanks in advance!

Saving the output created in a Command Prompt window I want to save the output from all the commands that I enter (along with the commands themselves) in a Command Prompt window (kind of like the 'script' command in Unix). I could not find any way to do this from the properties settings, and the best and cl

COMMAND LINE ARGUMENt How can I pass command line argument to any .exe file compiled by vb6.0

Cursor jumps in a wrong line Hello Everyone, I use some Win 2000 Clients with Progrma sin Visual Basic for DOS. A long time, I used the programs with Windows 98 in the DOS Box and got no problems. Now, after migration to Windows 2000, the mouseclick in the program may be wrong interp

What are Command Line commands to build VB6 projects? What are Command Line commands to build VB6 projects? I have a complex project and I need to write either a .bat file to build or use a Make program, either way I can't seem to find this simple piece of info from all the clutter... Thanks....
Post new topic   Reply to topic    msvisual.com Forum Index -> VB DOS All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group