Sign in to follow this  
Followers 0
stev379

Monitor copy progress

6 posts in this topic

Isn't there a way to get the Window copy progress dialogue to pop up? I thought I saw a way to this (maybe with VBS) a while back, but I can't find a references to it now.

Thanks!

Share this post


Link to post
Share on other sites



Isn't there a way to get the Window copy progress dialogue to pop up? I thought I saw a way to this (maybe with VBS) a while back, but I can't find a references to it now.

Thanks!

My browser could not follow the link above, and so here is another reply.

Sorry if it duplicates already available material.

There is a vbs script attached which does what you want. It will copy

some files to a diskette, using the "shell.application" object, and will

show a progress dialog.

NOTA BENE: the underlying api apparently does not show the progress

dialog for short file copies. So if you use it for a small file, the file will

get copied, but no dialog will be shown. That is the reason that the

demo script is copying to a diskette -- diskettes are always slow.

There is a second attachment, with is just the vbs script converted to

autoIt (requires the beta version).

Finally, if you really have a taste for the "real geek" stuff, then take

a look at the SHFileOperation API function, with its accompanying

SHFILEOPSTRUCT typedef. That api is what "shell.application" uses,

and the api code is what is showing the filecopy progress dialog.

If you look up the api, you will find that it has four basic functions,

move, copy, rename and delete. plus a number of options too

numerous to repeat. Here is a link to SHFileOperation documentation:

http://msdn.microsoft.com/library/default....leoperation.asp

cheers, jw

p.s. the attachments have a "txt" extension, because of the propensity

of some AV apps to deny vbs downloads.

testShellAppCopy.vbs.txt

testShellAppCopy.au3.txt

Share this post


Link to post
Share on other sites

Why use the ugly windows copy dialog;)

Just make more pretty one with no trowing of paper

Share this post


Link to post
Share on other sites

Here you go:

#82020

Share this post


Link to post
Share on other sites

Sweet!!

Thanks all for the information. Each piece of info is helpful and the link from SumTingWong is very educational for me in regard to AutoIT and DLL references.

THANKS!!!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0