| 1. |
Solve : Batch file - output " ...done! " after an operation?? |
|
Answer» Perhaps I'm just boneheaded and not seeing the obvious, but can someone please tell me how I'd get my batch to append " done! ", or similar, after an operation? You are looking for a way of appending something to the same line? Yea, that's exactly what I want, thanks! So, If I'm thinking this through correctly, I'd use your template above and simply replace your ping command for mine, yes? Can I assume that this method supports multiple commands? For example: Code: [Select] @echo off 0>nul set /p="Running CommandSet1... " ping www.google.com > nul ping www.sony.com > nul ping www.yahoo.com >nul echo done! Since experimentation is the key to learning, why don't you try that and see if it works? Just got done doing so and ANSWERED my own questions, thank you!Another thing to try: @echo off 0>nul set /p="Running CommandSet1" ping www.google.com > nul 0>nul set /p="." ping www.sony.com > nul 0>nul set /p="." ping www.yahoo.com >nul 0>nul set /p="." ping www.yahoo.com >nul 0>nul set /p="." ping www.yahoo.com >nul 0>nul set /p="." ping www.yahoo.com >nul 0>nul set /p="." ping www.yahoo.com >nul 0>nul set /p=". " echo done! Perfect, thanks! |
|