Trying to implement a progress bar while Analog loads report
Posted: 23 Jul 2008 09:51
What happens is, "Loading Weekly.." is displayed but is stuck while loading analog's reports. How do I get it to continue to process the rest of the batch while while it is loading analog so my progress bar can be displayed?
This is my batch file:
@echo off
title LOADER
set load=echo Loading Weekly Statistical Reports...
echo wscript.sleep 1000 > wait.vbs
set wait=wscript.exe wait.vbs
c:
%load%
cd c:\Program Files\analog 6.0\
call analog.exe +g"w20080606.cfg" -G +F080706:0001
+T080712:2359
echo 5%%%
%wait%
cls
%load%
echo 10%%%
%wait%
cls
%load%
echo 15%%%
%wait%
cls
%load%
echo 20%%%
%wait%
cls
%load%
echo 25%%%
%wait%
cls
%load%
echo 30%%%
%wait%
cls
%load%
echo 35%%%
%wait%
cls
%load%
echo 40%%%
%wait%
cls
%load%
echo 45%%%
%wait%
cls
%load%
echo 50%%%
%wait%
cls
%load%
echo 55%%%
%wait%
cls
%load%
echo 60%%%
%wait%
cls
%load%
echo 65%%%
%wait%
cls
%load%
echo 70%%%
%wait%
cls
%load%
echo 75%%%
%wait%
cls
%load%
echo 80%%%
%wait%
cls
%load%
echo 85%%%
%wait%
cls
%load%
echo 90%%%
%wait%
cls
%load%
echo 95%%%
%wait%
cls
%load%
echo 100%%%
echo.
echo Completed Loading!
pause
exit
This is my batch file:
@echo off
title LOADER
set load=echo Loading Weekly Statistical Reports...
echo wscript.sleep 1000 > wait.vbs
set wait=wscript.exe wait.vbs
c:
%load%
cd c:\Program Files\analog 6.0\
call analog.exe +g"w20080606.cfg" -G +F080706:0001
+T080712:2359
echo 5%%%
%wait%
cls
%load%
echo 10%%%
%wait%
cls
%load%
echo 15%%%
%wait%
cls
%load%
echo 20%%%
%wait%
cls
%load%
echo 25%%%
%wait%
cls
%load%
echo 30%%%
%wait%
cls
%load%
echo 35%%%
%wait%
cls
%load%
echo 40%%%
%wait%
cls
%load%
echo 45%%%
%wait%
cls
%load%
echo 50%%%
%wait%
cls
%load%
echo 55%%%
%wait%
cls
%load%
echo 60%%%
%wait%
cls
%load%
echo 65%%%
%wait%
cls
%load%
echo 70%%%
%wait%
cls
%load%
echo 75%%%
%wait%
cls
%load%
echo 80%%%
%wait%
cls
%load%
echo 85%%%
%wait%
cls
%load%
echo 90%%%
%wait%
cls
%load%
echo 95%%%
%wait%
cls
%load%
echo 100%%%
echo.
echo Completed Loading!
pause
exit