Help - Search - Members - Calendar
Full Version: Batch file: ECHO'ing something on previous line.
MSFN Forums > Coding, Scripting and Servers > Programming (C++, Delphi, VB, etc.)

   


Google Internet Forums Unattended CD/DVD Guide
bartgrefte
Hi smile.gif

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:
CODE
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? newwink.gif

With regards,

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

bartgrefte
Yes, thanks!

That seems to work biggrin.gif




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.