Computing.Net > Forums > Programming > Batch Progress Bar!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch Progress Bar!

Reply to Message Icon

Name: MikeSwim07
Date: October 25, 2008 at 09:53:31 Pacific
OS: Windows XP Home
CPU/Ram: 512mb
Product: Dell
Comment:

How can I make a progress bar with batch? Just a bar that would randomly count to 100%

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: worldlibrary
Date: October 25, 2008 at 13:38:37 Pacific

Response Number 2
Name: MikeSwim07
Date: October 25, 2008 at 16:00:06 Pacific
Reply:

I'm not copying files though.


0

Response Number 3
Name: pball
Date: October 26, 2008 at 08:48:58 Pacific
Reply:

what are you trying to do? we can't really help if we don't know exactly why you would like to do it.


0

Response Number 4
Name: MikeSwim07
Date: October 26, 2008 at 09:15:36 Pacific
Reply:

Umm.

Just a bar that counts up to 100%. It doesn't need to be insync with the process, just couting up to 100 percent.


0

Response Number 5
Name: alwaysk2
Date: October 26, 2008 at 18:06:43 Pacific
Reply:

Here is what you want have it ...
tell me if it works well for you
you can add it to your existing batch file or simply you can make a new batch file having below stated code and call it from your batch file using CALL command like
CALL C:\PROGRESSBAR.BAT


@echo off
setlocal enabledelayedexpansion
echo.
echo.

set i=1
(Set /P j=COPYING) < NUL
ECHO.
(Set /P j=......) < NUL
:start
call :DisplayProgressBar %i%
:replace the next line by the operation you want to do
ping -n 1 127.0.0.1 > NUL
set /a i = i + 1
if /i %i% leq 100 goto start
ECHO.
ECHO.
(Set /P j=COPYING SUCCESSFULLY COMPLETED) < NUL
ECHO.
PAUSE>NUL
goto :EOF

:DisplayProgressBar
(Set /P j=.) < NUL
title %1%% Completed
exit /b
endlocal

K2™
System/Network Engineer


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Batch Progress Bar!

batch - Progress bar while copying www.computing.net/answers/programming/batch-progress-bar-while-copying-/15421.html

Progress bar in batch file www.computing.net/answers/programming/progress-bar-in-batch-file/14919.html

Progress bar batch file www.computing.net/answers/programming/progress-bar-batch-file/17157.html