MSFN Forum: Batch file: ECHO'ing something on previous line. - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Batch file: ECHO'ing something on previous line. Rate Topic: -----

#1 User is offline   bartgrefte 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 11-April 08

Posted 04 November 2009 - 03:47 PM

Hi :)

I've got a question, how do I place text (with ECHO) in a batchfile on the end of the previous line of text?

The batchfile in question does this:
ECHO text...
start /wait setup.exe
ECHO Done!


What I would like, is that "Done!" appears next to "text... " after the installer has completed, instead of beneath it on the next line.

After letting Google do it's thing, I ran into this: http://www.experts-exchange.com/articles/O...aul-Tomasi.html , but I have no idea how to implement that into my batchfile...

Anyone would like to point me in the right direction? ;)

With regards,

Bart Grefte


#2 User is offline   Scr1ptW1zard 

  • Junior
  • Pip
  • Group: Members
  • Posts: 56
  • Joined: 05-July 07

Posted 04 November 2009 - 05:18 PM

Based on your example, and the solution you had already found,
try this:
 
@echo off
set /p var=text...<nul
start /wait setup.exe
ECHO Done! 


#3 User is offline   bartgrefte 

  • Newbie
  • Group: Members
  • Posts: 24
  • Joined: 11-April 08

Posted 06 November 2009 - 02:57 PM

Yes, thanks!

That seems to work :D

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy