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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Progress Bar

Status
Not open for further replies.

mapman04

IS-IT--Management
Mar 28, 2002
158
US
Is there a way in vb script to visually show the progress of a script? I have a script that copies files to a remote server and would like to see the status of the copying process. Can this be done?

Thanks,

Mapman04
 
Something like this ?
srcfile="\path\to\bigfile"
destdir="\\server\share\path\to\dir"
Set SA=CreateObject("Shell.Application")
Set NS=SA.NameSpace(destdir)
NS.CopyHere srcfile,16

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
One possibility is to control an IE instance via automation.

Another is to rewrite your script as an HTA instead of a WSH script.

One more is to use Shell.Application methods that can display animations during operations like file copying - as already decribed above.

Yet another is to use some ActiveX control that offers this capability or acts as a general-purpose control container to display forms or other GUI presentation.

One of the latter can be found at GooeyScript v1.12.

There isn't anything like this that you will find on a typical user's Windows machine though. You'd have to install something.


Your basic problem is that WSH was not designed to offer easy support for rich GUI interaction with users.

Personally I'd vote for writing an HTA if you don't need any of the few things that are exclusive to WSH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top