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:   
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