Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to put progress bar in script ?

Status
Not open for further replies.

bolobaboo

MIS
Aug 4, 2008
120
US
Hi
I have script which does backup for files. Is there way to put progress bar showing currently backing up files from total or % indicator ? I am not looking fancy, just show backup is running and how many left out of total.

Thanks inadvance
 
Try searching for progressbar. It turned up some useful results:

thread329-1378287

Swi
 
Or use the Shell.Application.CopyFromHere method.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
PHV's solution would be the way to go if you indeed want a true representation of what has actually moved.

Swi
 
Hi
PHV
I have following peice of code , don't how to modify as per u

.
.
.
If bDestinationExists = 0 then
Err.Clear
oFileSource.Copy strDestinationfolderpath & "\" & oFileSource.Name
numcopied = numcopied + 1
If Err.Number <> 0 Then
numerrored = numerrored + 1
'Write to log
addtolog strLogFile,"Unable to copy this file : " & strSourcefolderpath & "\" & oFileSource.Name
End if
End If
.
.
.
 
This code was PHV's from another thread:

Code:
srcfile="\path\to\bigfile"
destdir="\\server\share\path\to\dir"
Set SA=CreateObject("Shell.Application")
Set NS=SA.NameSpace(destdir)
NS.CopyHere srcfile,16

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top