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

fso.CopyFolder adding a progressbar 3

Status
Not open for further replies.

pbuddy2007

Technical User
Feb 9, 2008
17
0
0
CA
Any idea how I can add a progressbar to a fso.CopyFolder process ?
 
thanks !!!!
but how do I add 2 constant to she shell procedure
I'd like the &H0& (display progress) + &H10& (apply the Yes to all)...Below is the original code to which I'll like to add the &H10& constant

Code:
Const FOF_CREATEPROGRESSDLG = &H0&
ParentFolder = "D:\Archive"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace(ParentFolder)
objFolder.CopyHere "C:\Scripts", FOF_CREATEPROGRESSDLG



 
Somthing like this should work:

Code:
Const FOF_CREATEPROGRESSDLG = &H0&
Const FOF_NOCONFIRMATION = &H10
ParentFolder = "D:\Archive"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace(ParentFolder)
objFolder.CopyHere "C:\Scripts", FOF_CREATEPROGRESSDLG Or FOF_NOCONFIRMATION

Swi
 
Oops, missed an ampersand:

Code:
Const FOF_CREATEPROGRESSDLG = &H0&
Const FOF_NOCONFIRMATION = &H10[red]&[/red]
ParentFolder = "D:\Archive"
Set objShell = CreateObject("Shell.Application")
Set objFolder = objShell.NameSpace(ParentFolder)
objFolder.CopyHere "C:\Scripts", FOF_CREATEPROGRESSDLG Or FOF_NOCONFIRMATION

Swi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top